]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cmd.c
increased sv_maxrate limit to 150000 from 25000
[xonotic/darkplaces.git] / cmd.c
diff --git a/cmd.c b/cmd.c
index bc09a50d629f3b24f73958a84447e060467565c2..b042cd28b3de7cccffaacb127bb2ad099d1f7db3 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -502,7 +502,9 @@ static void Cmd_ExecuteAlias (cmdalias_t *alias)
 {
        static char buffer[ MAX_INPUTLINE + 2 ];
        Cmd_PreprocessString( alias->value, buffer, sizeof(buffer) - 2, alias );
-       Cbuf_AddText( buffer );
+       // insert at start of command buffer, so that aliases execute in order
+       // (fixes bug introduced by Black on 20050705)
+       Cbuf_InsertText( buffer );
 }
 
 /*
@@ -1034,7 +1036,10 @@ void Cmd_ForwardStringToServer (const char *s)
        // LordHavoc: thanks to Fuh for bringing the pure evil of SZ_Print to my
        // attention, it has been eradicated from here, its only (former) use in
        // all of darkplaces.
-       MSG_WriteByte(&cls.netcon->message, clc_stringcmd);
+       if (cls.protocol == PROTOCOL_QUAKEWORLD)
+               MSG_WriteByte(&cls.netcon->message, qw_clc_stringcmd);
+       else
+               MSG_WriteByte(&cls.netcon->message, clc_stringcmd);
        SZ_Write(&cls.netcon->message, (const unsigned char *)s, (int)strlen(s) + 1);
 }