UC_UNLOCKPERCENT: Only evaluate when not in-game

- M_MapLocked uses netgame state, so too easy to get Test Run early (resolves #859)
- Major iteration of unlockable structs and related, so may also confer a performance benefit
This commit is contained in:
toaster 2024-01-07 14:03:06 +00:00
parent 4994ceef2c
commit 7916a6e1cb

View file

@ -1468,6 +1468,11 @@ boolean M_CheckCondition(condition_t *cn, player_t *player)
case UC_UNLOCKPERCENT:
{
// Don't let netgame sessions intefere
// (or have this give a performance hit)
if (Playing())
return false;
UINT16 i, unlocked = cn->extrainfo2, total = 0;
// Special case for maps