]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
localcmd should work better adding EOLS before and after the command
authorterencehill <piuntn@gmail.com>
Sat, 3 Dec 2011 22:13:04 +0000 (23:13 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 3 Dec 2011 22:13:04 +0000 (23:13 +0100)
qcsrc/client/hud.qc

index f3ea3d1b627418a761421086f52e17f43957a26f..cbb5bd1cebc939d02cd2512fd51bd725e5562137 100644 (file)
@@ -4992,7 +4992,7 @@ void HUD_QuickMenu_ActionForNumber(float num)
 
        if (QuickMenu_Command[num] != "")
        {
-               localcmd(QuickMenu_Command[num]);
+               localcmd(strcat("\n", QuickMenu_Command[num], "\n"));
                if (!(hudShiftState & S_CTRL))
                        HUD_QuickMenu_Close();
                return;