mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
4994ceef2c
commit
7916a6e1cb
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue