Fixed Snake game translations

This commit is contained in:
Valentino Orlandi 2022-11-24 22:55:50 +01:00
parent dfdb3260ba
commit 82adc2e083
Signed by: elB4RTO
GPG Key ID: 1719E976DB2D4E71
1 changed files with 3 additions and 3 deletions

View File

@ -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;