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-861f7616d084
master
Giel van Schijndel 2009-05-02 00:58:37 +00:00 committed by Git SVN Gateway
parent 47bbacc7bb
commit f8a70ebf2b
1 changed files with 2 additions and 5 deletions

View File

@ -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);
}