From 54f0e4dcc655b81b4bb4f3daaa115ecb4aa5ebad Mon Sep 17 00:00:00 2001 From: Jason Hilder Date: Wed, 16 Sep 2026 07:53:55 +0200 Subject: [PATCH] Small cleanup, spacing, comments. --- src/entity_ball.odin | 2 ++ src/game.odin | 1 + 2 files changed, 3 insertions(+) diff --git a/src/entity_ball.odin b/src/entity_ball.odin index ca40eb3..9805549 100644 --- a/src/entity_ball.odin +++ b/src/entity_ball.odin @@ -31,9 +31,11 @@ update_ball :: proc(ball: ^Entity, level: ^Level, dt: f32) { // first check the level timer are we waiting to serve? if level.serve_timer > 0 { level.serve_timer -= dt + if level.serve_timer <= 0 { serve_ball(ball) } + return } diff --git a/src/game.odin b/src/game.odin index 306ba2b..2a7ce50 100644 --- a/src/game.odin +++ b/src/game.odin @@ -36,6 +36,7 @@ game_update :: proc(game: ^Game) { input := poll_input() // Pass direct pointers (^Scene) so modifications persist + // only update the overlay, if it currently exists if overlay, ok := &game.overlay_scene.?; ok { scene_update(overlay, game, input, dt) } else {