]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
do not prevent shooting crylink secondary while holding primary fire to focus later
authorRudolf Polzer <divVerent@xonotic.org>
Wed, 24 Aug 2011 09:46:06 +0000 (11:46 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 24 Aug 2011 09:46:06 +0000 (11:46 +0200)
qcsrc/server/w_crylink.qc

index d58f6e0dda31fceef851de38e39fcb0ad5b6524c..05f381f3beabe4b4d09d0105bac0dc03d23bd907 100644 (file)
@@ -532,7 +532,8 @@ float w_crylink(float req)
        {
                if(autocvar_g_balance_crylink_reload_ammo && self.clip_load < min(autocvar_g_balance_crylink_primary_ammo, autocvar_g_balance_crylink_secondary_ammo)) // forced reload
                        weapon_action(self.weapon, WR_RELOAD);
-               else if (self.BUTTON_ATCK)
+
+               if (self.BUTTON_ATCK)
                {
                        if (self.crylink_waitrelease != 1)
                        if (weapon_prepareattack(0, autocvar_g_balance_crylink_primary_refire))
@@ -543,7 +544,8 @@ float w_crylink(float req)
                                        self.crylink_waitrelease = 1;
                        }
                }
-               else if(self.BUTTON_ATCK2 && autocvar_g_balance_crylink_secondary)
+
+               if(self.BUTTON_ATCK2 && autocvar_g_balance_crylink_secondary)
                {
                        if (self.crylink_waitrelease != 2)
                        if (weapon_prepareattack(1, autocvar_g_balance_crylink_secondary_refire))