diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-16 21:33:23 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-16 21:33:23 +0200 |
| commit | 37ff88d1631bfbd231b3d93f3401f3d70a750b45 (patch) | |
| tree | af6bbc21a9e454ab5a9778135470cc842b557b2d /src/bullets.c | |
| parent | 250361975fc81ca01d96f615ed1226641887c305 (diff) | |
temp
Diffstat (limited to 'src/bullets.c')
| -rw-r--r-- | src/bullets.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bullets.c b/src/bullets.c index 7517949..4de760d 100644 --- a/src/bullets.c +++ b/src/bullets.c @@ -98,6 +98,7 @@ object_type check_if_bullet_collided_with_object(bullet* b, platform_window* win for (int i = 0; i < MAX_OBJECTS; i++) { object o = loaded_map.objects[i]; if (!o.active) continue; + if (!o.collision) continue; if (b->position.z <= o.position.z + o.size.z && b->position.z >= o.position.z) { box obj_box = get_box_of_square((vec3f){o.position.x, o.position.y, o.position.z}, o.size); vec2f intersect_point; |
