Skip to content

Commit

Permalink
vpos should always be between 0 and 5
Browse files Browse the repository at this point in the history
  • Loading branch information
badda71 committed Apr 27, 2020
1 parent 8630aab commit 7e23302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ void gui_handle_events (SDL_Event *e)
case DS_DOWN3:
if (v) {
mainMenu_vpos -= 1;
if (mainMenu_vpos > 6) mainMenu_vpos=6;
if (mainMenu_vpos < -4) mainMenu_vpos=-4;
if (mainMenu_vpos > 5) mainMenu_vpos=5;
if (mainMenu_vpos < 0) mainMenu_vpos=0;
snprintf(buf,50,"VPOS %d",mainMenu_vpos*8);
gui_set_message(buf,1000);
getChanges();
Expand Down

0 comments on commit 7e23302

Please sign in to comment.