mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-05 00:12:16 +00:00
Formulate the bailout for UC_UNLOCKPERCENT to perfectly prevent any M_CheckNetUnlockID cases from being relevant
This commit is contained in:
parent
53b51d972e
commit
706781bf31
1 changed files with 4 additions and 2 deletions
|
|
@ -1516,8 +1516,10 @@ boolean M_CheckCondition(condition_t *cn, player_t *player)
|
||||||
case UC_UNLOCKPERCENT:
|
case UC_UNLOCKPERCENT:
|
||||||
{
|
{
|
||||||
// Don't let netgame sessions intefere
|
// Don't let netgame sessions intefere
|
||||||
// (or have this give a performance hit)
|
// or have this give a performance hit
|
||||||
if (Playing())
|
// (This is formulated this way to
|
||||||
|
// perfectly eclipse M_CheckNetUnlockByID)
|
||||||
|
if (netgame || demo.playback || Playing())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
UINT16 i, unlocked = cn->extrainfo2, total = 0;
|
UINT16 i, unlocked = cn->extrainfo2, total = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue