]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix arc preventing switching weapons when you change weapons with the button held
authorMario <mario@smbclan.net>
Sun, 30 Sep 2018 11:41:40 +0000 (21:41 +1000)
committerMario <mario@smbclan.net>
Sun, 30 Sep 2018 11:41:40 +0000 (21:41 +1000)
qcsrc/common/weapons/weapon/arc.qc

index c9d12fa679943bc6d84833b9b53db455477d6379..56a48f2f3114c711acd24a612bbdec7e4971178b 100644 (file)
@@ -236,8 +236,8 @@ void W_Arc_Beam_Think(entity this)
                {
                        // note: this doesn't force the switch
                        W_SwitchToOtherWeapon(own, weaponentity);
-                       own.(weaponentity).arc_BUTTON_ATCK_prev = false; // hax
                }
+               own.(weaponentity).arc_BUTTON_ATCK_prev = false; // allow switching weapons
                delete(this);
                return;
        }