From 3e825971102a33dfbb82a20a365684d413bc1ba8 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 18 Dec 2022 17:41:50 +0100 Subject: refactor --- src/drops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drops.c') diff --git a/src/drops.c b/src/drops.c index 881c207..59bfcc6 100644 --- a/src/drops.c +++ b/src/drops.c @@ -23,7 +23,7 @@ void update_drops() { drops[i].time_active += update_delta; drops[i].position.z = MAX_HEIGHT_DIFF * sin (2 * M_PI * 0.5f * (drops[i].time_active) + 0) + b.start_h; - for (int x = 0; x < max_players; x++) { + for (int x = 0; x < MAX_PLAYERS; x++) { player *p = &players[x]; if (!p->active) continue; -- cgit v1.2.3-70-g09d2