diff --git a/src/engine.cc b/src/engine.cc index 83e538c..f982b7d 100644 --- a/src/engine.cc +++ b/src/engine.cc @@ -35,11 +35,10 @@ int engine_run() { start_game(); while(g_context.running) { handle_events(); - update_game(); - draw_game(); _render_mode = 1; - draw_game_ui(); + update_ui(); _render_mode = 0; + update_game(); swap_buffer(); } engine_shutdown(); diff --git a/src/engine.hpp b/src/engine.hpp index 650c615..72a5bc1 100644 --- a/src/engine.hpp +++ b/src/engine.hpp @@ -8,7 +8,6 @@ extern void load_game(); extern void start_game(); extern void update_game(); -extern void draw_game(); -extern void draw_game_ui(); +extern void update_ui(); #endif /* _engine_h */