summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2021-03-13 09:40:13 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2021-03-13 15:34:50 -0500
commitb5327496baf28f0c5fefaa631fe586569b7f8dec (patch)
treef6ed3ccb234ffea5d05e6c1689fa8b23bdb36f2c
parent2581f03c00f5a14f49081d82eb8e1a31c31aae88 (diff)
downloadtanetane-b5327496baf28f0c5fefaa631fe586569b7f8dec.tar.gz
tanetane-b5327496baf28f0c5fefaa631fe586569b7f8dec.tar.bz2
tanetane-b5327496baf28f0c5fefaa631fe586569b7f8dec.zip
Menu cursor should start at the top when opened
Even if it was left on a different option before closing the menu.
-rw-r--r--src/menu_system.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/menu_system.cpp b/src/menu_system.cpp index d3a310e..aaaa0e1 100644 --- a/src/menu_system.cpp +++ b/src/menu_system.cpp
@@ -43,6 +43,8 @@ void MenuSystem::openPauseMenu() {
43 MenuBuilder().Command("Return to Main Menu"), 43 MenuBuilder().Command("Return to Main Menu"),
44 MenuBuilder().Command("Resume Game") 44 MenuBuilder().Command("Resume Game")
45 }); 45 });
46
47 cursor_ = 0;
46} 48}
47 49
48void MenuSystem::closePauseMenu() { 50void MenuSystem::closePauseMenu() {