From 2cd3f5b0233b351cdd7e8a75b29d0f719046e4a5 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 28 Jul 2007 17:06:47 +0000 Subject: fixed so that you can press esc when connecting --- src/engine/client/client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/engine/client/client.cpp') 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(); } } -- cgit 1.4.1