about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-23 09:24:47 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-23 09:24:47 +0000
commitbf298955bdbde737f2ae6c440753f3dcb52ddc5f (patch)
tree7ff59e9746314bdecb57d3711af6d1aa76ebed2d /src/game/client
parent8a0ee875867bf06f060726ad639e4ab5a92017a1 (diff)
downloadzcatch-bf298955bdbde737f2ae6c440753f3dcb52ddc5f.tar.gz
zcatch-bf298955bdbde737f2ae6c440753f3dcb52ddc5f.zip
fixed the motd message displaying the first line correctly
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/gc_hooks.cpp2
1 files changed, 1 insertions, 1 deletions
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')