mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
parent
3dc2ad64d6
commit
6a2aa87e95
1 changed files with 2 additions and 2 deletions
|
|
@ -1497,12 +1497,12 @@ boolean P_RunTriggerLinedef(line_t *triggerline, mobj_t *actor, sector_t *caller
|
||||||
|
|
||||||
if ((modifiedgame && !savemoddata) || (netgame || multiplayer))
|
if ((modifiedgame && !savemoddata) || (netgame || multiplayer))
|
||||||
return false;
|
return false;
|
||||||
else if (unlockid < 0 || unlockid >= MAXUNLOCKABLES) // limited by unlockable count
|
else if (unlockid <= 0 || unlockid > MAXUNLOCKABLES) // limited by unlockable count
|
||||||
{
|
{
|
||||||
CONS_Debug(DBG_GAMELOGIC, "Unlockable check (sidedef %hu): bad unlockable ID %d\n", triggerline->sidenum[0], unlockid);
|
CONS_Debug(DBG_GAMELOGIC, "Unlockable check (sidedef %hu): bad unlockable ID %d\n", triggerline->sidenum[0], unlockid);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (!(unlockables[unlockid-1].unlocked))
|
else if (!(unlockables[unlockid].unlocked))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue