From b0e5093bb631209fb7b511651624773e731a3cba Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 23 Mar 2008 14:26:29 +0000 Subject: [PATCH] removed some old code --- src/game/client/gc_hooks.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/game/client/gc_hooks.cpp b/src/game/client/gc_hooks.cpp index b02c6ab13..ab63442c7 100644 --- a/src/game/client/gc_hooks.cpp +++ b/src/game/client/gc_hooks.cpp @@ -543,18 +543,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 = strlen(server_motd)+1; - for(int i = 0; server_motd[i]; i++) - { - if(server_motd[i] == '\n') - { - len = i; - break; - } - } - + if(server_motd[0]) server_motd_time = time_get()+time_freq()*10; else