]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Run impulse commands on spawn prior to running the weapon frame, so the selected...
authorMario <mario@smbclan.net>
Mon, 2 Jul 2018 10:59:41 +0000 (20:59 +1000)
committerMario <mario@smbclan.net>
Mon, 2 Jul 2018 10:59:54 +0000 (20:59 +1000)
qcsrc/server/client.qc

index 43174dd5539253a0fbf4ebaaa7c7d0940ef37830..9214900f36af170cce29422d8735673e91ff5779 100644 (file)
@@ -754,6 +754,8 @@ void PutPlayerInServer(entity this)
 
        MUTATOR_CALLHOOK(PlayerWeaponSelect, this);
 
+       if (CS(this).impulse) ImpulseCommands(this);
+
        for(int slot = 0; slot < MAX_WEAPONSLOTS; ++slot)
        {
                .entity weaponentity = weaponentities[slot];