mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-17 10:11:02 +00:00
Fix motd being broken for admins
It turns out the game was sending the full size of the motd buffer (254) rather than just the size of the string made, therefore sending a load of garbage and making the game apparently execute unknown or illegal net commands
This commit is contained in:
parent
b4b82e681c
commit
ae14fd2f85
1 changed files with 1 additions and 1 deletions
|
@ -2965,7 +2965,7 @@ static void Command_MotD_f(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((netgame || multiplayer) && client)
|
if ((netgame || multiplayer) && client)
|
||||||
SendNetXCmd(XD_SETMOTD, mymotd, sizeof(motd));
|
SendNetXCmd(XD_SETMOTD, mymotd, i); // send the actual size of the motd string, not the full buffer's size
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
strcpy(motd, mymotd);
|
strcpy(motd, mymotd);
|
||||||
|
|
Loading…
Reference in a new issue