mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 14:41:55 +00:00
- minor sanity check improvements.
This commit is contained in:
parent
12a0f587a3
commit
363d062685
2 changed files with 2 additions and 2 deletions
|
@ -3140,7 +3140,7 @@ bool ActorTrackDecide(TRACK_POINTp tpoint, DSWActor* actor)
|
|||
if (hit.hitWall == nullptr)
|
||||
return false;
|
||||
|
||||
if (hit.hitWall->nextSector() == nullptr)
|
||||
if (!hit.hitWall->twoSided())
|
||||
return false;
|
||||
|
||||
zdiff = labs(sp->z - hit.hitWall->nextSector()->floorz) >> 8;
|
||||
|
|
|
@ -210,7 +210,7 @@ bool WarpSectorInfo(sectortype* sect, DSWActor** sp_warp)
|
|||
{
|
||||
*sp_warp = nullptr;
|
||||
|
||||
if (sect && !TEST(sect->extra, SECTFX_WARP_SECTOR))
|
||||
if (!sect || !TEST(sect->extra, SECTFX_WARP_SECTOR))
|
||||
return false;
|
||||
|
||||
SWStatIterator it(STAT_WARP);
|
||||
|
|
Loading…
Reference in a new issue