summary refs log tree commit diff stats
path: root/src/menu_system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu_system.cpp')
generated by cgit-pink 1.4.1 (git 2.36.1) at 2026-02-26 04:53:05 +0000 d class='lineno'>67
65void MenuSystem::pressedDown() { 68void MenuSystem::pressedDown() {
66 if (cursor_ < menu_.size() - 1) { 69 cursor_++;
67 cursor_++;
68 cursorBob_ = 0;
69 cursorBobDown_ = true;
70 70
71 game_.getMixer().playSound("../res/sfx/vertical_menu.wav"); 71 if (cursor_ >= menu_.size()) {
72 cursor_ = 0;
72 } 73 }
74
75 cursorBob_ = 0;
76 cursorBobDown_ = true;
77
78 game_.getMixer().playSound("../res/sfx/vertical_menu.wav");
73} 79}