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