From 5fdd9676cbe481c3d7102ebc4e591c74b1aa6b3d Mon Sep 17 00:00:00 2001 From: dawnDus <96957561+dawndus@users.noreply.github.com> Date: Sun, 24 Apr 2022 17:45:44 -0400 Subject: [PATCH] Refire fix --- src/weapon/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/weapon/mod.rs b/src/weapon/mod.rs index d22101b..fdc5afb 100644 --- a/src/weapon/mod.rs +++ b/src/weapon/mod.rs @@ -176,9 +176,10 @@ impl Weapon { self.empty_counter = self.empty_counter.saturating_sub(1); self.refire_timer = self.refire_timer.saturating_sub(1); - if self.refire_timer > 0 { - return; - } else if player.controller.trigger_shoot() { + if player.controller.trigger_shoot() { + if self.refire_timer > 0 { + return; + } self.refire_timer = 4; }