]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Release loaded rockets when the player dies
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 12 Apr 2011 20:29:46 +0000 (23:29 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 12 Apr 2011 20:29:46 +0000 (23:29 +0300)
qcsrc/server/w_hagar.qc

index 265cb28f499f5d71a56b3f55340b03f1a4dbe17a..a0658e9f32269152f84a1214227676384e0bb4a6 100644 (file)
@@ -324,7 +324,9 @@ float w_hagar(float req)
        }
        else if (req == WR_PLAYERDEATH)
        {
-               dprint("!!!!!!!!!!!!!!!!!!!!!!!\n");
+               // if we have any rockets loaded when we die, release them
+               if(self.hagar_load)
+                       W_Hagar_Attack2_Load_Release();
        }
        else if (req == WR_RELOAD)
        {