]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow spawning with both weapons in debug mode 1
authorMario <mario@smbclan.net>
Sun, 2 Apr 2017 03:22:49 +0000 (13:22 +1000)
committerMario <mario@smbclan.net>
Sun, 2 Apr 2017 03:22:49 +0000 (13:22 +1000)
qcsrc/server/client.qc

index a2e5caab1fcc4d86271288aa75590c8cfdc4d43d..168ca84968c5e6fc75422b18fc777880874b3c12 100644 (file)
@@ -714,7 +714,7 @@ void PutClientInServer(entity this)
                for(int slot = 0; slot < MAX_WEAPONSLOTS; ++slot)
                {
                        .entity weaponentity = weaponentities[slot];
-                       if(slot == 0)
+                       if(slot == 0 || autocvar_g_weaponswitch_debug == 1)
                                this.(weaponentity).m_switchweapon = w_getbestweapon(this, weaponentity);
                        else
                                this.(weaponentity).m_switchweapon = WEP_Null;