From 82adc2e083d010f26f9944b92b0f46b1ec485cc6 Mon Sep 17 00:00:00 2001 From: Valentino Orlandi Date: Thu, 24 Nov 2022 22:55:50 +0100 Subject: [PATCH] Fixed Snake game translations --- logdoctor/games/snake/game.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/logdoctor/games/snake/game.cpp b/logdoctor/games/snake/game.cpp index e3604ead..b8a146a1 100644 --- a/logdoctor/games/snake/game.cpp +++ b/logdoctor/games/snake/game.cpp @@ -372,7 +372,7 @@ void SnakeGame::checkCollision( Snake& snake, Snake& adv_snake, const bool& is_a // collision with the field limits this->game_over = true; this->game_over_msg = (is_adv) - ? SnakeGame::tr("Your adversary fell in the water!")+"\n\n"+SnakeGame::tr("YOU WIN!") + ? SnakeGame::tr("Your adversary fell in the water!")+"\n\n"+SnakeGame::tr("YOU WON!") : SnakeGame::tr("You fell in the water!")+"\n\n"+SnakeGame::tr("YOU LOST!"); } else if ( snake.inTile( x, y ) ) { @@ -381,7 +381,7 @@ void SnakeGame::checkCollision( Snake& snake, Snake& adv_snake, const bool& is_a // not the tail this->game_over = true; this->game_over_msg = (is_adv) - ? SnakeGame::tr("You adversary ate itself!")+"\n\n"+SnakeGame::tr("YOU WIN!") + ? SnakeGame::tr("Your adversary ate itself!")+"\n\n"+SnakeGame::tr("YOU WON!") : SnakeGame::tr("You ate yourself!")+"\n\n"+SnakeGame::tr("YOU LOST!"); } @@ -393,7 +393,7 @@ void SnakeGame::checkCollision( Snake& snake, Snake& adv_snake, const bool& is_a // not the head this->game_over = true; this->game_over_msg = (is_adv) - ? SnakeGame::tr("You adversary ate you!")+"\n\n"+SnakeGame::tr("YOU WIN!") + ? SnakeGame::tr("Your adversary ate you!")+"\n\n"+SnakeGame::tr("YOU WON!") : SnakeGame::tr("You ate your adversary!")+"\n\n"+SnakeGame::tr("YOU LOST!"); } else { this->game_over = true;