summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 092da55..8497b6a 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -2,6 +2,7 @@
#include <unistd.h>
#include "game.h"
+#include "SDL_keycode.h"
#include "game/physics/movement.h"
#include "game/world/bsp.h"
#include "game/world/draw.h"
@@ -18,6 +19,7 @@
#include "gui.h"
#include "render/gl_batch.h"
#include "util.h"
+#include "util/input.h"
#include "util/profiler.h"
#include "util/time.h"
@@ -196,7 +198,6 @@ U8 game_main_loop( GAME_DATA* game ) { _profiled
gui_onframe( game );
profiler_draw_tree( game->assets.jpn12 );
-
#if defined(DEBUG) && !IS_EDITOR
game_draw_fpsoverlay( game );
#endif
@@ -204,7 +205,7 @@ U8 game_main_loop( GAME_DATA* game ) { _profiled
if( !OK( gl_endframe( gl ) ) )
return 1;
- return 0;
+ return input_is_key_down( SDLK_ESCAPE );
}
void game_on_tick( GAME_DATA* game ) { _profiled