From 33208e83c98ff02534dd71699f4859a59cea669e Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Wed, 13 Apr 2011 01:47:39 +0300 Subject: [PATCH] Fix a bug with dropping the hagar while loading it. You still lose the ammo though, which needs to be fixed too --- qcsrc/server/cl_weaponsystem.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/server/cl_weaponsystem.qc b/qcsrc/server/cl_weaponsystem.qc index 2434c4b94..0c9409bc7 100644 --- a/qcsrc/server/cl_weaponsystem.qc +++ b/qcsrc/server/cl_weaponsystem.qc @@ -36,6 +36,7 @@ void W_SwitchWeapon_Force(entity e, float w) { // don't allow switching to another weapon if we're loading rockets into the hagar if(e.weapon == WEP_HAGAR && e.hagar_load) + if(e.weapons & WEPBIT_HAGAR) // only if we still have the hagar, prevents a bug with dropping return; e.cnt = e.switchweapon; -- 2.39.2