fix language toggle

This commit is contained in:
dborth 2010-10-19 21:41:04 +00:00
parent 221bab8a9a
commit 887f39c835

View File

@ -3564,11 +3564,15 @@ static int MenuSettingsMenu()
break; break;
case 5: case 5:
GCSettings.language++; GCSettings.language++;
if(GCSettings.language >= LANG_LENGTH)
GCSettings.language = LANG_JAPANESE;
if(GCSettings.language == LANG_SIMP_CHINESE) if(GCSettings.language == LANG_SIMP_CHINESE)
GCSettings.language = LANG_PORTUGUESE; GCSettings.language = LANG_PORTUGUESE;
else if(GCSettings.language == LANG_JAPANESE) else if(GCSettings.language == LANG_JAPANESE)
GCSettings.language = LANG_ENGLISH; GCSettings.language = LANG_ENGLISH;
break; break;
} }