Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Turned MenuManager into a proper class instead of just a collection o…
…f static functions, added std::unique_ptr<> to Menu
  • Loading branch information
Grumbel committed Aug 8, 2014
1 parent a05e54b commit f05308a
Show file tree
Hide file tree
Showing 15 changed files with 216 additions and 199 deletions.
2 changes: 1 addition & 1 deletion src/control/keyboard_manager.cpp
Expand Up @@ -76,7 +76,7 @@ KeyboardManager::process_key_event(const SDL_KeyboardEvent& event)
// if console is open: send key there
process_console_key_event(event);
}
else if (MenuManager::current())
else if (MenuManager::instance().current())
{
// if menu mode: send key there
process_menu_key_event(event);
Expand Down

0 comments on commit f05308a

Please sign in to comment.