about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-28 17:06:47 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-28 17:06:47 +0000
commit2cd3f5b0233b351cdd7e8a75b29d0f719046e4a5 (patch)
tree2bdb77066801f550b6830f1433b88fb60f385013
parent323cc161059bddf1a03008395c03a93f46603d64 (diff)
downloadzcatch-2cd3f5b0233b351cdd7e8a75b29d0f719046e4a5.tar.gz
zcatch-2cd3f5b0233b351cdd7e8a75b29d0f719046e4a5.zip
fixed so that you can press esc when connecting
-rw-r--r--src/engine/client/client.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp
index 4c584ba2..af537e62 100644
--- a/src/engine/client/client.cpp
+++ b/src/engine/client/client.cpp
@@ -444,7 +444,6 @@ void client::render()
 	{
 		//netaddr4 server_address;
 		int status = modmenu_render();
-
 		if (status == -1)
 			set_state(STATE_QUIT);
 	}
@@ -476,6 +475,9 @@ void client::render()
 
 		ui_do_image(tee_texture, x, 95, w, 64);
 		ui_do_image(connecting_texture, 88, 150, 256, 64);
+		
+		if(inp_key_down(input::esc))
+			disconnect();
 	}
 }