Small cleanup, spacing, comments.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user