diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-04-30 16:20:49 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-04-30 16:20:49 +0200 |
| commit | 784b123af41337c57535b80c15fe13b62dfc1e66 (patch) | |
| tree | 1446494c60ae372f1a4f66d72a56c33af74f1b59 /src/bullets.c | |
| parent | 9e70ced6b48d627f236af8ea8366c6ed73748ab1 (diff) | |
work
Diffstat (limited to 'src/bullets.c')
| -rw-r--r-- | src/bullets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bullets.c b/src/bullets.c index fb56a12..ff96db9 100644 --- a/src/bullets.c +++ b/src/bullets.c @@ -75,7 +75,7 @@ bool check_if_bullet_collided_with_object(bullet* b, platform_window* window) { bool result = false; float dist_of_closest_intersect = __FLT_MAX__; - for (int i = 0; i < max_objects; i++) { + for (int i = 0; i < MAX_OBJECTS; i++) { object o = objects[i]; if (!o.active) continue; if (b->position.z <= o.h + o.size.z && b->position.z >= o.h) { |
