Skip to content

Commit

Permalink
Fix bug in explosion effect
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlangston committed Jan 8, 2024
1 parent a910c78 commit 4b8ef06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Models/Explosion.zig
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ pub const Explosion = struct {
if (self.active) {
for (0..PARTICLE_COUNT) |i| {
self.particle[i].Draw();
if (@as(f32, @floatFromInt(i)) > self.blastRadius * 2) break;
}
}
}
Expand Down

0 comments on commit 4b8ef06

Please sign in to comment.