mirror of
https://github.com/ZDoom/Raze.git
synced 2025-04-25 01:01:02 +00:00
- undid some leftover placeholder code in FAFhitscan.
This commit is contained in:
parent
d215ae0c63
commit
0bfb4abc1c
1 changed files with 4 additions and 5 deletions
|
@ -146,18 +146,17 @@ FAFhitscan(int32_t x, int32_t y, int32_t z, sectortype* sect,
|
||||||
hit.hitpos.Y -= yvect>>9;
|
hit.hitpos.Y -= yvect>>9;
|
||||||
|
|
||||||
// warp to new x,y,z, sectnum
|
// warp to new x,y,z, sectnum
|
||||||
sectortype* newsect = nullptr;
|
if (Warp(&hit.hitpos.X, &hit.hitpos.Y, &hit.hitpos.Z, &hit.hitSector))
|
||||||
if (Warp(&hit.hitpos.X, &hit.hitpos.Y, &hit.hitpos.Z, &newsect))
|
|
||||||
{
|
{
|
||||||
// hitscan needs to pass through dest sect
|
// hitscan needs to pass through dest sect
|
||||||
ResetWallWarpHitscan(newsect);
|
ResetWallWarpHitscan(hit.hitSector);
|
||||||
|
|
||||||
// NOTE: This could be recursive I think if need be
|
// NOTE: This could be recursive I think if need be
|
||||||
auto pos = hit.hitpos;
|
auto pos = hit.hitpos;
|
||||||
hitscan(pos, newsect, { xvect, yvect, zvect }, hit, startclipmask);
|
hitscan(pos, hit.hitSector, { xvect, yvect, zvect }, hit, startclipmask);
|
||||||
|
|
||||||
// reset hitscan block for dest sect
|
// reset hitscan block for dest sect
|
||||||
SetWallWarpHitscan(newsect);
|
SetWallWarpHitscan(hit.hitSector);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue