mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed the motd message displaying the first line correctly
This commit is contained in:
parent
8a0ee87586
commit
bf298955bd
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue