Ignore lead limit if greater than score limit
authorterencehill <piuntn@gmail.com>
Sat, 21 Mar 2020 18:52:18 +0000 (19:52 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 21 Mar 2020 18:52:18 +0000 (19:52 +0100)
qcsrc/server/g_world.qc

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