From 706781bf31eeb121acf1d85b9fd86a4f51761075 Mon Sep 17 00:00:00 2001 From: toaster Date: Thu, 21 Mar 2024 00:02:12 +0000 Subject: [PATCH] Formulate the bailout for UC_UNLOCKPERCENT to perfectly prevent any M_CheckNetUnlockID cases from being relevant --- src/m_cond.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/m_cond.c b/src/m_cond.c index d9bba940e..33683d531 100644 --- a/src/m_cond.c +++ b/src/m_cond.c @@ -1516,8 +1516,10 @@ 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()) + // or have this give a performance hit + // (This is formulated this way to + // perfectly eclipse M_CheckNetUnlockByID) + if (netgame || demo.playback || Playing()) return false; UINT16 i, unlocked = cn->extrainfo2, total = 0;