diff options
| author | iamcheeseman <[hidden email]> | 2026-01-16 14:02:01 -0500 |
|---|---|---|
| committer | iamcheeseman <[hidden email]> | 2026-01-16 14:02:01 -0500 |
| commit | 64e3dc9c109f4f76d5d1f65a9082340213985361 (patch) | |
| tree | 37c2652ea82e18b4bf65cb142c9b81d5ae53ec4a /src/bullet.odin | |
| parent | f5a8333aaf0104d3aba4f096c9180cd8287ac1ff (diff) | |
Add recoil to the gun
Diffstat (limited to 'src/bullet.odin')
| -rw-r--r-- | src/bullet.odin | 2 |
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 } |
