- undid some leftover placeholder code in FAFhitscan.

This commit is contained in:
Christoph Oelckers 2022-01-01 18:39:59 +01:00
parent d215ae0c63
commit 0bfb4abc1c

View file

@ -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;
} }