]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't end the match at a 0:0 tie unless the server is empty, fixes #1981
authorMario <zacjardine@y7mail.com>
Sat, 12 Dec 2020 07:56:50 +0000 (17:56 +1000)
committerMario <zacjardine@y7mail.com>
Sat, 12 Dec 2020 07:56:50 +0000 (17:56 +1000)
qcsrc/server/scores.qc

index 7cc5c624185c5aef4f188b7c91ec4c2d986e6487..821c378a84388d3dc941b708a02064f715a4386a 100644 (file)
@@ -533,7 +533,8 @@ void WinningConditionHelper(entity this)
                        else
                                WinningConditionHelper_topscore = -999999999;
                }
-               WinningConditionHelper_equality = 0;
+               if(player_count == 0) // special case: empty servers DO end the match at a 0:0 tie
+                       WinningConditionHelper_equality = 0;
        }
 
        if(WinningConditionHelper_secondscore == 0)