From: Mario Date: Tue, 26 Mar 2013 19:06:48 +0000 (+1100) Subject: Prevent loading hagar before the match has started. Fixes bug #1434 (Able to shoot... X-Git-Tag: xonotic-v0.7.0~70^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=af70ac3f1020e5b989fe889bd69b79cfd2b19c47;p=xonotic%2Fxonotic-data.pk3dir.git Prevent loading hagar before the match has started. Fixes bug #1434 (Able to shoot during countdown) --- diff --git a/qcsrc/server/w_hagar.qc b/qcsrc/server/w_hagar.qc index b4b79abb8..4d9a0fabe 100644 --- a/qcsrc/server/w_hagar.qc +++ b/qcsrc/server/w_hagar.qc @@ -236,6 +236,9 @@ void W_Hagar_Attack2_Load_Release (void) void W_Hagar_Attack2_Load (void) { // loadable hagar secondary attack, must always run each frame + + if(time < game_starttime) + return; float loaded, enough_ammo; loaded = self.hagar_load >= autocvar_g_balance_hagar_secondary_load_max;