diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-18 17:41:50 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-18 17:41:50 +0100 |
| commit | 3e825971102a33dfbb82a20a365684d413bc1ba8 (patch) | |
| tree | 718bf8a802bf3631bee22ef33161dec8d68ed6cf /src/drops.c | |
| parent | 9eefbb4afc9601024eac6191addd98e21f90a5b3 (diff) | |
refactor
Diffstat (limited to 'src/drops.c')
| -rw-r--r-- | src/drops.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
