Fix previous commit breaking leadlimit_and_fraglimit 1
authorterencehill <piuntn@gmail.com>
Sat, 21 Mar 2020 22:16:30 +0000 (23:16 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 21 Mar 2020 22:16:30 +0000 (23:16 +0100)
qcsrc/server/g_world.qc

index 49f8257..aa4c5f5 100644 (file)
@@ -1737,7 +1737,8 @@ float WinningCondition_Scores(float limit, float leadlimit)
                limit = -limit;
        }
 
-       if(WinningConditionHelper_zeroisworst || (limit && leadlimit >= fabs(limit)))
+       if(WinningConditionHelper_zeroisworst
+               || (!autocvar_leadlimit_and_fraglimit && limit && leadlimit >= fabs(limit)))
                leadlimit = 0; // not supported in this mode
 
        if(MUTATOR_CALLHOOK(Scores_CountFragsRemaining))