Fixed Snake game translations
This commit is contained in:
parent
dfdb3260ba
commit
82adc2e083
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue