From d08271f1dcbec5fce0197b6ca9d022392f4f2ca2 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Tue, 21 Oct 2008 13:48:49 +0000 Subject: [PATCH] fixed quit panic button and editor access button --- src/engine/client/ec_client.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/engine/client/ec_client.c b/src/engine/client/ec_client.c index 96e97af19..96700cb07 100644 --- a/src/engine/client/ec_client.c +++ b/src/engine/client/ec_client.c @@ -1601,11 +1601,19 @@ static void client_run() } /* panic quit button */ + #ifdef CONFIG_NO_SDL if(inp_key_pressed(KEY_LCTRL) && inp_key_pressed(KEY_LSHIFT) && inp_key_pressed('Q')) break; if(inp_key_pressed(KEY_LCTRL) && inp_key_pressed(KEY_LSHIFT) && inp_key_down('E')) config.cl_editor = config.cl_editor^1; + #else + if(inp_key_pressed(KEY_LCTRL) && inp_key_pressed(KEY_LSHIFT) && inp_key_pressed('q')) + break; + + if(inp_key_pressed(KEY_LCTRL) && inp_key_pressed(KEY_LSHIFT) && inp_key_down('e')) + config.cl_editor = config.cl_editor^1; + #endif if(!gfx_window_open()) break;