mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 06:13:45 -07:00
no need to have conditions since ID are the same
This commit is contained in:
parent
ce148e7659
commit
e4e86e8a10
1 changed files with 2 additions and 8 deletions
|
@ -423,14 +423,8 @@ void GameState_Update(GameState* gameState) {
|
||||||
gSaveContext.dayTime = prevTime;
|
gSaveContext.dayTime = prevTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
//I added this check here to allow Player to switch languages on runtime
|
//since our CVar is same value and properly default to 0 there is not problems doing this in single line.
|
||||||
if (CVar_GetS32("gLanguages", 0) == 0) {
|
gSaveContext.language = CVar_GetS32("gLanguages", 0);
|
||||||
gSaveContext.language = LANGUAGE_ENG;
|
|
||||||
} else if (CVar_GetS32("gLanguages", 0) == 1) {
|
|
||||||
gSaveContext.language = LANGUAGE_GER;
|
|
||||||
} else if (CVar_GetS32("gLanguages", 0) == 2) {
|
|
||||||
gSaveContext.language = LANGUAGE_FRA;
|
|
||||||
}
|
|
||||||
|
|
||||||
gameState->frames++;
|
gameState->frames++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue