]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix Arc continuing to fire after the match ends
authorMario <mario.mario@y7mail.com>
Wed, 7 Oct 2020 12:37:16 +0000 (22:37 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 7 Oct 2020 12:37:22 +0000 (22:37 +1000)
qcsrc/common/weapons/weapon/arc.qc

index 3af9a18da5af96e9e5cac254beebc099e60d45a4..f5888c50a01bdfea2c648bfa3b33f63718579894 100644 (file)
@@ -186,11 +186,14 @@ void W_Arc_Beam_Think(entity this)
 
        Weapon thiswep = WEP_ARC;
 
+       // TODO: use standard weapon use checks here!
        if(
                !IS_PLAYER(own)
                ||
                IS_DEAD(own)
                ||
+               game_stopped
+               ||
                !weapon_prepareattack_check(thiswep, own, weaponentity, this.beam_bursting, -1)
                ||
                own.(weaponentity).m_switchweapon != WEP_ARC