about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/components/hud.cpp4
-rw-r--r--src/game/client/components/menus.cpp15
2 files changed, 13 insertions, 6 deletions
diff --git a/src/game/client/components/hud.cpp b/src/game/client/components/hud.cpp
index af8c9b5c..05df0702 100644
--- a/src/game/client/components/hud.cpp
+++ b/src/game/client/components/hud.cpp
@@ -1,9 +1,5 @@
 #include <memory.h> // memcmp
 
-extern "C" {
-	#include <engine/e_config.h>
-}
-
 #include <engine/e_client_interface.h>
 #include <game/generated/g_protocol.hpp>
 #include <game/generated/gc_data.hpp>
diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp
index fc409821..e3212ceb 100644
--- a/src/game/client/components/menus.cpp
+++ b/src/game/client/components/menus.cpp
@@ -955,6 +955,16 @@ bool MENUS::on_mousemove(float x, float y)
 
 bool MENUS::on_input(INPUT_EVENT e)
 {
+//	if(e.)
+	//
+	if(e.flags&INPFLAG_PRESS && e.key == KEY_ESC)
+	{
+		menu_active	= !menu_active;
+		return true;
+	}
+	
+	if(menu_active)
+		return true;
 	return false;
 }
 
@@ -982,13 +992,14 @@ void MENUS::on_statechange(int new_state, int old_state)
 	{
 		popup = POPUP_NONE;
 		menu_active = false;
-	 	//menu_game_active = true;
-	 	//snapshot_count = 0;
 	}
 }
 
 void MENUS::on_render()
 {
+	if(client_state() != CLIENTSTATE_ONLINE)
+		menu_active = true;
+	
 	if(!menu_active)
 		return;