- silence some warnings

This commit is contained in:
Christoph Oelckers 2022-10-05 00:00:25 +02:00
parent 30112e1289
commit 35fbc634de

View file

@ -177,8 +177,8 @@ void FAFhitscan(const DVector3& start, sectortype* sect, const DVector3& vect, H
ResetWallWarpHitscan(hit.hitSector); ResetWallWarpHitscan(hit.hitSector);
// NOTE: This could be recursive I think if need be // NOTE: This could be recursive I think if need be
auto start = hit.hitpos; auto nstart = hit.hitpos;
hitscan(start, hit.hitSector, vect, hit, startclipmask); hitscan(nstart, hit.hitSector, vect, hit, startclipmask);
// reset hitscan block for dest sect // reset hitscan block for dest sect
SetWallWarpHitscan(hit.hitSector); SetWallWarpHitscan(hit.hitSector);
@ -204,8 +204,8 @@ void FAFhitscan(const DVector3& start, sectortype* sect, const DVector3& vect, H
sectortype* newsect = nullptr; sectortype* newsect = nullptr;
if (Warp(hit.hitpos, &newsect)) if (Warp(hit.hitpos, &newsect))
{ {
auto start = hit.hitpos; auto nstart = hit.hitpos;
hitscan(start, newsect, vect, hit, clipmask); hitscan(nstart, newsect, vect, hit, clipmask);
return; return;
} }
} }
@ -214,8 +214,8 @@ void FAFhitscan(const DVector3& start, sectortype* sect, const DVector3& vect, H
sectortype* newsect = nullptr; sectortype* newsect = nullptr;
if (WarpPlane(hit.hitpos, &newsect)) if (WarpPlane(hit.hitpos, &newsect))
{ {
auto start = hit.hitpos; auto nstart = hit.hitpos;
hitscan(start, newsect, vect, hit, clipmask); hitscan(nstart, newsect, vect, hit, clipmask);
return; return;
} }
} }
@ -243,8 +243,8 @@ void FAFhitscan(const DVector3& start, sectortype* sect, const DVector3& vect, H
if (plax_found) if (plax_found)
{ {
auto start = hit.hitpos; auto nstart = hit.hitpos;
hitscan(start, newsector, vect, hit, clipmask); hitscan(nstart, newsector, vect, hit, clipmask);
} }
} }