]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2066 "Hagar secondary works in CA before round starts"
authorterencehill <piuntn@gmail.com>
Sun, 5 Aug 2018 18:25:00 +0000 (20:25 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 5 Aug 2018 18:25:00 +0000 (20:25 +0200)
qcsrc/common/weapons/weapon/hagar.qc

index 03855e316e7c1c9f4be758095ad057c06fa5c835..861def9c733a12562f001c710e1c2cad254bc664 100644 (file)
@@ -257,6 +257,8 @@ void W_Hagar_Attack2_Load(Weapon thiswep, entity actor, .entity weaponentity)
        // loadable hagar secondary attack, must always run each frame
        if(time < game_starttime || time < actor.race_penalty || timeout_status == TIMEOUT_ACTIVE)
                return;
+       if (round_handler_IsActive() && !round_handler_IsRoundStarted())
+               return;
 
        bool loaded = actor.(weaponentity).hagar_load >= WEP_CVAR_SEC(hagar, load_max);