From cab8803828516dd43fc73ea46eddf0d62d868412 Mon Sep 17 00:00:00 2001 From: pierow Date: Sun, 20 Aug 2023 17:31:01 -0400 Subject: [PATCH] fix reload animation not showing on client -occured if empty on reserve ammo and walking over an ammo pack while holding reload --- main/source/cl_dll/hl/hl_weapons.cpp | 1 + main/source/dlls/weapons.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/main/source/cl_dll/hl/hl_weapons.cpp b/main/source/cl_dll/hl/hl_weapons.cpp index e7aeee47..8378be28 100644 --- a/main/source/cl_dll/hl/hl_weapons.cpp +++ b/main/source/cl_dll/hl/hl_weapons.cpp @@ -662,6 +662,7 @@ void CBasePlayerWeapon::ItemPostFrame( void ) { // reload when reload is pressed, or if no buttons are down and weapon is empty. Reload(); + return; } } // +movement: Removed case for +attack2 diff --git a/main/source/dlls/weapons.cpp b/main/source/dlls/weapons.cpp index f477f169..8c24f6b5 100644 --- a/main/source/dlls/weapons.cpp +++ b/main/source/dlls/weapons.cpp @@ -1012,6 +1012,7 @@ void CBasePlayerWeapon::ItemPostFrame( void ) { // reload when reload is pressed, or if no buttons are down and weapon is empty. Reload(); + return; } } // +movement: Removed case for +attack2