From bf298955bdbde737f2ae6c440753f3dcb52ddc5f Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 23 Mar 2008 09:24:47 +0000 Subject: fixed the motd message displaying the first line correctly --- src/game/client/gc_hooks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/client/gc_hooks.cpp b/src/game/client/gc_hooks.cpp index 5dadb558..d3feb871 100644 --- a/src/game/client/gc_hooks.cpp +++ b/src/game/client/gc_hooks.cpp @@ -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') -- cgit 1.4.1