- minor sanity check improvements.

This commit is contained in:
Christoph Oelckers 2021-12-05 21:31:19 +01:00
parent 12a0f587a3
commit 363d062685
2 changed files with 2 additions and 2 deletions

View file

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

View file

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