]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix a bug with dropping the hagar while loading it. You still lose the ammo though...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 12 Apr 2011 22:47:39 +0000 (01:47 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 12 Apr 2011 22:47:39 +0000 (01:47 +0300)
qcsrc/server/cl_weaponsystem.qc

index 2434c4b94a446ec50a170b6f870e8a243196ca9c..0c9409bc77c6b1c2a8ecc8799ebff304cdd98c97 100644 (file)
@@ -36,6 +36,7 @@ void W_SwitchWeapon_Force(entity e, float w)
 {
        // don't allow switching to another weapon if we're loading rockets into the hagar
        if(e.weapon == WEP_HAGAR && e.hagar_load)
+       if(e.weapons & WEPBIT_HAGAR) // only if we still have the hagar, prevents a bug with dropping
                return;
 
        e.cnt = e.switchweapon;