]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
in minstagib, DO allow throwing superweapons
authorRudolf Polzer <divverent@alientrap.org>
Mon, 16 Jan 2012 11:04:21 +0000 (12:04 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 16 Jan 2012 11:04:39 +0000 (12:04 +0100)
qcsrc/server/cl_weapons.qc

index 8c0cb96e0eb4f0627867800f7691eb979aa53af2..8b3b5e596873de645f6667d21d48c9fa91fc6677 100644 (file)
@@ -288,8 +288,9 @@ float W_IsWeaponThrowable(float w)
        wb = W_WeaponBit(w);
        if(!wb)
                return 0;
-       if(wb & WEPBIT_SUPERWEAPONS) // can't throw a superweapon, they don't work
-               return 0;
+       if(!g_minstagib)
+               if(wb & WEPBIT_SUPERWEAPONS) // can't throw a superweapon, they don't work
+                       return 0;
        wa = W_AmmoItemCode(w);
        if(start_weapons & wb)
        {