X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=host_cmd.c;h=530cf4e4858dfc9bbb2555a89ae72c4b11eabf01;hb=72ee8739858634ef2077ab65276f14656b03f2d9;hp=f341d7d6e3fad00d0026d6b0e3bf54d4863b20a7;hpb=3b30e46c438004cb7715429dd71a212524c471eb;p=xonotic%2Fdarkplaces.git diff --git a/host_cmd.c b/host_cmd.c index f341d7d6..530cf4e4 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -924,6 +924,9 @@ void Host_Loadgame_f (void) // parse the global vars PRVM_ED_ParseGlobals (start); + + // restore the autocvar globals + Cvar_UpdateAllAutoCvars(); } else { @@ -2489,6 +2492,7 @@ void Host_PQRcon_f (void) MSG_WriteLong (&net_message, 0); MSG_WriteByte (&net_message, CCREQ_RCON); SZ_Write(&net_message, (void*)rcon_password.string, n); + MSG_WriteByte (&net_message, 0); // terminate the (possibly partial) string MSG_WriteString (&net_message, Cmd_Args()); StoreBigLong(net_message.data, NETFLAG_CTL | (net_message.cursize & NETFLAG_LENGTH_MASK)); NetConn_Write(mysocket, net_message.data, net_message.cursize, &to);