about summary refs log tree commit diff
path: root/src/engine/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-08-04 22:02:38 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-08-04 22:02:38 +0000
commit43ceec0f9cb47bf0834f4cac18c5066a14bd7fe4 (patch)
tree250917bbcf1f3214843630d3797ec338cc2a49cc /src/engine/client
parent9b7900fa109cc4c23163bdb5cb945cc4172abe9d (diff)
downloadzcatch-43ceec0f9cb47bf0834f4cac18c5066a14bd7fe4.tar.gz
zcatch-43ceec0f9cb47bf0834f4cac18c5066a14bd7fe4.zip
removed some debug keys
Diffstat (limited to 'src/engine/client')
-rw-r--r--src/engine/client/client.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp
index 148f0f47..fa00dcc1 100644
--- a/src/engine/client/client.cpp
+++ b/src/engine/client/client.cpp
@@ -875,16 +875,19 @@ static void client_run(const char *direct_connect_server)
 			gfx_screenshot();
 
 		// panic button
-		if(input::pressed(input::lctrl) && input::pressed('Q'))
-			break;
-
-		if(input::pressed(input::f5))
+		if(config.debug)
 		{
-			// ack snapshot
-			msg_pack_start_system(NETMSG_SNAPACK, 0);
-			msg_pack_int(-1);
-			msg_pack_end();
-			client_send_msg();
+			if(input::pressed(input::lctrl) && input::pressed('Q'))
+				break;
+		
+			if(input::pressed(input::f5))
+			{
+				// ack snapshot
+				msg_pack_start_system(NETMSG_SNAPACK, 0);
+				msg_pack_int(-1);
+				msg_pack_end();
+				client_send_msg();
+			}
 		}
 			
 		// pump the network