From ab534595f06b4dced15d23ca6fcd45cf938f322c Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sat, 5 Dec 2009 09:34:58 +0000 Subject: [PATCH] OOps, move runlogic --- frodo_menu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frodo_menu.cpp b/frodo_menu.cpp index 08c9b88..7fde3b7 100644 --- a/frodo_menu.cpp +++ b/frodo_menu.cpp @@ -225,6 +225,7 @@ void Gui::runLogic(void) if (!this->is_active || !cur_view) return; + cur_view->runLogic(); } @@ -255,6 +256,7 @@ GuiView *Gui::popView() void Gui::exitMenu() { + printf("Exiting the menu system\n"); free(this->views); this->views = NULL; } @@ -265,7 +267,6 @@ void Gui::pushEvent(SDL_Event *ev) if (this->is_active || !cur_view) cur_view->pushEvent(ev); - cur_view->runLogic(); } void Gui::draw(SDL_Surface *where)