fixed the motd message displaying the first line correctly

This commit is contained in:
Magnus Auvinen 2008-03-23 09:24:47 +00:00
parent 8a0ee87586
commit bf298955bd

View file

@ -552,7 +552,7 @@ extern "C" void modc_message(int msgtype)
dbg_msg("game", "MOTD: %s", server_motd);
// take the first line as a center text
int len = 0;
int len = strlen(server_motd)+1;
for(int i = 0; server_motd[i]; i++)
{
if(server_motd[i] == '\n')