Skip to content

Commit

Permalink
Changed logic under language selection
Browse files Browse the repository at this point in the history
Basically replaced my pretty logic with a bunch of if statements because yes
  • Loading branch information
naipotato committed Sep 29, 2019
1 parent 0dd5679 commit 1941a52
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/setwindow.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,8 +1043,11 @@ u32 Setting_window(void)
}
else if(select ==2) //lang
{
language_sel++;
if (language_sel > 2)
if (language_sel == 0)
language_sel = 1;
else if (language_sel == 1)
language_sel = 2;
else
language_sel = 0;
}
else if(select ==3)
Expand Down Expand Up @@ -1089,8 +1092,10 @@ u32 Setting_window(void)
{
if (language_sel == 0)
language_sel = 2;
else if (language_sel == 2)
language_sel = 1;
else
language_sel--;
language_sel = 0;
}
else if(select ==3)
{
Expand Down

0 comments on commit 1941a52

Please sign in to comment.