]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 ff8eab7b891d58b58fdd16876b2a16e13228a6f0..49f8257f93540639362b3964396d871cd2409da9 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))