- fixed potential infinite loop in Hexen-style stair builder.

This commit is contained in:
Christoph Oelckers 2022-01-07 00:09:59 +01:00
commit 63fa01205f
4 changed files with 32 additions and 11 deletions

View file

@ -521,7 +521,7 @@ int DPhased::PhaseHelper (sector_t *sector, int index, int light, sector_t *prev
else
l = Level->CreateThinker<DPhased> (sector, baselevel);
int numsteps = PhaseHelper (sector->NextSpecialSector (
int numsteps = PhaseHelper (P_NextSpecialSector (sector,
sector->special == LightSequenceSpecial1 ?
LightSequenceSpecial2 : LightSequenceSpecial1, prev),
index + 1, l->m_BaseLevel, sector);