about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-04-05 07:34:06 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-04-05 07:34:06 +0000
commit15cd754da09d55a94f12ee17b39df3db7651c565 (patch)
tree69ceacb6ffc1b1b02a065760c2c9761c0f32cc31 /src/game/client
parent2a4e911c3256d0479bbe178e820888825918a0eb (diff)
downloadzcatch-15cd754da09d55a94f12ee17b39df3db7651c565.tar.gz
zcatch-15cd754da09d55a94f12ee17b39df3db7651c565.zip
motd tweaks
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/gc_client.cpp4
-rw-r--r--src/game/client/gc_hooks.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/game/client/gc_client.cpp b/src/game/client/gc_client.cpp
index 6bc83af9..bcacfd17 100644
--- a/src/game/client/gc_client.cpp
+++ b/src/game/client/gc_client.cpp
@@ -896,7 +896,9 @@ void render_game()
 
 	if(inp_key_down(KEY_ESC))
 	{
-		if (chat_mode)
+		if(server_motd_time)
+			server_motd_time = 0;
+		else if (chat_mode)
 			chat_mode = CHATMODE_NONE;
 		else
 		{
diff --git a/src/game/client/gc_hooks.cpp b/src/game/client/gc_hooks.cpp
index 4a0a0ecc..33b9ba91 100644
--- a/src/game/client/gc_hooks.cpp
+++ b/src/game/client/gc_hooks.cpp
@@ -542,10 +542,8 @@ extern "C" void modc_message(int msgtype)
 			}
 		}
 
-		dbg_msg("game", "MOTD: %s", server_motd);
-
-		if(server_motd[0])
-			server_motd_time = time_get()+time_freq()*10;
+		if(server_motd[0] && config.cl_motd_time)
+			server_motd_time = time_get()+time_freq()*config.cl_motd_time;
 		else
 			server_motd_time = 0;
 	}