use enum for language (#2097)

Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
briaguya 2022-12-06 00:36:53 -05:00 committed by GitHub
parent 1e0e80f580
commit 4ee0ddaa15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 9 deletions

View file

@ -458,8 +458,7 @@ void GameState_Update(GameState* gameState) {
}
}
//since our CVar is same value and properly default to 0 there is not problems doing this in single line.
gSaveContext.language = CVar_GetS32("gLanguages", 0);
gSaveContext.language = CVar_GetS32("gLanguages", LANGUAGE_ENG);
gameState->frames++;
}