Fix "Quit" and red button appearing over the credits when you click them

Fixes #205
This commit is contained in:
2019-12-30 01:35:54 -05:00
parent 5ca27fdad5
commit 6ae8a313b5

View File

@@ -45,7 +45,8 @@ bool handle_startup_press(location the_point) {
the_point = mainPtr.mapPixelToCoords(the_point, mainView);
for(auto btn : startup_button.keys())
for(auto btn : startup_button.keys()) {
if(btn == eStartButton::STARTBTN_SCROLL) continue;
if(the_point.in(startup_button[btn])) {
draw_start_button(btn,5);
mainPtr.display(); // TODO: I suspect this won't work
@@ -122,6 +123,7 @@ bool handle_startup_press(location the_point) {
break;
}
}
}
return false;
}