games: fix

This commit is contained in:
starnakin 2024-02-13 10:35:42 +01:00 committed by AdrienLSH
parent 39b592e45c
commit 2e425d3f0c

View File

@ -222,7 +222,7 @@ def collision(game: Game, impact_data: dict) -> bool:
angle = paddle_collision(game.ball, impact_data.get("impact"), player_hitted) angle = paddle_collision(game.ball, impact_data.get("impact"), player_hitted)
if (angle is None): if (angle is None):
return None return False
game.ball.angle = angle game.ball.angle = angle
return True return True