mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
No space before exclamation mark.
This commit is contained in:
parent
83e019e7d3
commit
1fa2ff0458
@ -165,12 +165,12 @@ int main()
|
|||||||
if (ball.getPosition().x - ballRadius < 0.f)
|
if (ball.getPosition().x - ballRadius < 0.f)
|
||||||
{
|
{
|
||||||
isPlaying = false;
|
isPlaying = false;
|
||||||
pauseMessage.setString("You lost !\nPress space to restart or\nescape to exit");
|
pauseMessage.setString("You lost!\nPress space to restart or\nescape to exit");
|
||||||
}
|
}
|
||||||
if (ball.getPosition().x + ballRadius > gameWidth)
|
if (ball.getPosition().x + ballRadius > gameWidth)
|
||||||
{
|
{
|
||||||
isPlaying = false;
|
isPlaying = false;
|
||||||
pauseMessage.setString("You won !\nPress space to restart or\nescape to exit");
|
pauseMessage.setString("You won!\nPress space to restart or\nescape to exit");
|
||||||
}
|
}
|
||||||
if (ball.getPosition().y - ballRadius < 0.f)
|
if (ball.getPosition().y - ballRadius < 0.f)
|
||||||
{
|
{
|
||||||
|
@ -85,7 +85,7 @@ int main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Finished !
|
// Finished !
|
||||||
std::cout << std::endl << "Done !" << std::endl;
|
std::cout << std::endl << "Done!" << std::endl;
|
||||||
|
|
||||||
// Wait until the user presses 'enter' key
|
// Wait until the user presses 'enter' key
|
||||||
std::cout << "Press enter to exit..." << std::endl;
|
std::cout << "Press enter to exit..." << std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user