]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix error spam when winning a tic tac toe or push-pull game
authorMario <mario@smbclan.net>
Fri, 19 Jul 2019 23:42:43 +0000 (09:42 +1000)
committerMario <mario@smbclan.net>
Fri, 19 Jul 2019 23:42:43 +0000 (09:42 +1000)
qcsrc/common/minigames/minigame/pp.qc
qcsrc/common/minigames/minigame/ttt.qc

index 269d39583926dcb3632a343be3a296c567d0fac1..4ea08c5d6ff1af6471095c94b9673fab5cb6e914 100644 (file)
@@ -440,8 +440,8 @@ string pp_turn_to_string(int turnflags)
        if ( turnflags & PP_TURN_WIN )
        {
                if ( (turnflags&PP_TURN_TEAM) != minigame_self.team )
-                       return strcat(_("You lost the game!"), "\n", _("Select \"^1Next Match^7\" on the menu for a rematch!"));
-               return strcat(_("You win!"), "\n", _("Select \"^1Next Match^7\" on the menu to start a new match!"));
+                       return _("You lost the game!\nSelect \"^1Next Match^7\" on the menu for a rematch!");
+               return _("You win!\nSelect \"^1Next Match^7\" on the menu to start a new match!");
        }
 
        if ( turnflags & PP_TURN_NEXT )
index 0c7c6fb5d31df48d78b37ea90bb15498b98784f5..dd7bf3c62a0c39830bd8a49dac5e95d4cc3abfdc 100644 (file)
@@ -321,8 +321,8 @@ string ttt_turn_to_string(int turnflags)
        if ( turnflags & TTT_TURN_WIN )
        {
                if ( (turnflags&TTT_TURN_TEAM) != minigame_self.team )
-                       strcat(_("You lost the game!"), "\n", _("Select \"^1Next Match^7\" on the menu for a rematch!"));
-               return strcat(_("You win!"), "\n", _("Select \"^1Next Match^7\" on the menu to start a new match!"));
+                       return _("You lost the game!\nSelect \"^1Next Match^7\" on the menu for a rematch!"); // TODO: proper "you win" banner instead of hijacking the help message
+               return _("You win!\nSelect \"^1Next Match^7\" on the menu to start a new match!");
        }
 
        if ( turnflags & TTT_TURN_NEXT )