Skip to content

Commit

Permalink
Fixed a major bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Oct 17, 2022
1 parent 6abc1d0 commit 45b9db8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Pong With Real Windows/Ball.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ void Ball::restartGame()
((int)m_desktop->right - (int)m_desktop->left) / 2 - m_radius,
((int)m_desktop->bottom - (int)m_desktop->top) / 2 - m_radius
));
m_windowPosition = {(float)m_window.getPosition().x, (float)m_window.getPosition().y};

m_speed = m_defaultSpeed;
randomizeAngle();

Expand Down

0 comments on commit 45b9db8

Please sign in to comment.