]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Prevent loading hagar before the match has started. Fixes bug #1434 (Able to shoot...
authorMario <mario.mario@y7mail.com>
Tue, 26 Mar 2013 19:06:48 +0000 (06:06 +1100)
committerMario <mario.mario@y7mail.com>
Tue, 26 Mar 2013 19:06:48 +0000 (06:06 +1100)
qcsrc/server/w_hagar.qc

index b4b79abb832363bfea7fcd11d775bb0c8eb84554..4d9a0fabe137652c5ec2c8085d1fdf4868db74c6 100644 (file)
@@ -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;