Lets not use an intermediate buffer for the MOTD before adding it to the console (as a message)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7271 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
47bbacc7bb
commit
f8a70ebf2b
|
@ -335,10 +335,7 @@ void setupNewPlayer(UDWORD dpid, UDWORD player)
|
|||
// unfortunatly, we don't get the message until after the setup is done.
|
||||
void ShowMOTD(void)
|
||||
{
|
||||
char buf[255];
|
||||
// when HOST joins the game, show server MOTD message first
|
||||
ssprintf(buf, _("System message:"));
|
||||
addConsoleMessage(buf, DEFAULT_JUSTIFY, NOTIFY_MESSAGE);
|
||||
ssprintf(buf, "%s", NetPlay.MOTDbuffer);
|
||||
addConsoleMessage(buf, DEFAULT_JUSTIFY, NOTIFY_MESSAGE);
|
||||
addConsoleMessage(_("System message:"), DEFAULT_JUSTIFY, NOTIFY_MESSAGE);
|
||||
addConsoleMessage(NetPlay.MOTDbuffer, DEFAULT_JUSTIFY, NOTIFY_MESSAGE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue