]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix captured dom cp message
authorterencehill <piuntn@gmail.com>
Fri, 13 Aug 2010 18:20:21 +0000 (20:20 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 13 Aug 2010 18:20:21 +0000 (20:20 +0200)
qcsrc/server/domination.qc

index 5bf2b9ad86c531a5c611761c74341ec4fdb382ce..3406d11711be6bb0cf684cbb5dc6d3dfac14ea2d 100644 (file)
@@ -77,7 +77,10 @@ void dompoint_captured ()
                wait_time = self.wait;
 
        bprint("^3", head.netname, "^3", self.message);
-       bprint(" ^7(", ftos(points), " points every ", ftos(wait_time), " seconds)\n");
+       if (points > 1)
+               bprint(" ^7(", ftos(points), " points every ", ftos(wait_time), " seconds)\n");
+       else
+               bprint(" ^7(", ftos(points), " point every ", ftos(wait_time), " seconds)\n");
 
        if(self.enemy.playerid == self.enemy_playerid)
                PlayerScore_Add(self.enemy, SP_DOM_TAKES, 1);