]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
autojoin if we are still spec, and hud_config mode is on
authorFruitieX <rasse@rasse-lappy.localdomain>
Wed, 9 Jun 2010 22:46:52 +0000 (01:46 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Wed, 9 Jun 2010 22:46:52 +0000 (01:46 +0300)
qcsrc/client/hud.qc

index 99ce9eae49e4dc5aba2d00b54cdc8772495bdb56..0b0bae8029f3e0699c673ef9de23a33904ca450a 100644 (file)
@@ -3961,4 +3961,8 @@ void HUD_Main (void)
                HUD_ShowSpeed();
        if (cvar("cl_showacceleration"))
                HUD_ShowAcceleration();
+
+       if (hud_configure && spectatee_status) // try to join if we are in hud_configure mode, but still spectating (in order to get rid of motd and such)
+               localcmd("cmd selectteam auto; cmd join\n");
+
 }