From: Mario Date: Sun, 2 Apr 2017 03:22:49 +0000 (+1000) Subject: Allow spawning with both weapons in debug mode 1 X-Git-Tag: xonotic-v0.8.5~2853 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fa45cbb7a44afc1e252eabfa59033d99323ca1c0;p=xonotic%2Fxonotic-data.pk3dir.git Allow spawning with both weapons in debug mode 1 --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index a2e5caab1..168ca8496 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -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;