mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- added missing range check to secret hack for WT.
This commit is contained in:
parent
b1cbecf268
commit
2e63453cd0
1 changed files with 1 additions and 1 deletions
|
@ -2242,7 +2242,7 @@ void PlayerOperateEnv(PLAYER* pp)
|
|||
pp->KeyPressBits &= ~SB_OPEN;
|
||||
|
||||
// crude and very awful hack for wd secret area
|
||||
if (pp->cursector == §or[491] && currentLevel->levelNumber == 11 && sector[715].lotag == TAG_SECRET_AREA_TRIGGER)
|
||||
if (sector.Size() > 715 && pp->cursector == §or[491] && currentLevel->levelNumber == 11 && sector[715].lotag == TAG_SECRET_AREA_TRIGGER)
|
||||
{
|
||||
TriggerSecret(§or[715], pp);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue