aboutsummaryrefslogtreecommitdiff
path: root/src/bullet.odin
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-01-16 14:02:01 -0500
committeriamcheeseman <[hidden email]>2026-01-16 14:02:01 -0500
commit64e3dc9c109f4f76d5d1f65a9082340213985361 (patch)
tree37c2652ea82e18b4bf65cb142c9b81d5ae53ec4a /src/bullet.odin
parentf5a8333aaf0104d3aba4f096c9180cd8287ac1ff (diff)
Add recoil to the gun
Diffstat (limited to 'src/bullet.odin')
-rw-r--r--src/bullet.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bullet.odin b/src/bullet.odin
index 61b920a..9b95bb8 100644
--- a/src/bullet.odin
+++ b/src/bullet.odin
@@ -65,7 +65,7 @@ update_bullets :: proc(dt: f32) {
phys.update_body(b.body)
- if phys.get_collisions(b.body) != {} || b.lifetime < 0 {
+ if phys.get_collisions(b.body) != nil || b.lifetime < 0 {
delete_bullet(b.handle)
continue
}