1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

Breakout: Stop paddle movement when resetting it

This commit is contained in:
Andreas Kling 2020-11-10 13:55:06 +01:00
parent d05d519b0d
commit 844c2e1f3b

View file

@ -45,6 +45,8 @@ Game::~Game()
void Game::reset_paddle()
{
m_paddle.moving_left = false;
m_paddle.moving_right = false;
m_paddle.rect = { game_width / 2 - 40, game_height - 20, 80, 16 };
}