mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-16 10:02:59 -07:00
Fix Cheat Menuing (#237)
* readded cheats to menu; fixed bug with freezing time * removed extraneous dev tools section
This commit is contained in:
parent
18d2bac409
commit
43294d66b5
2 changed files with 35 additions and 0 deletions
|
@ -421,6 +421,8 @@ void GameState_Update(GameState* gameState) {
|
|||
|
||||
int32_t prevTime = CVar_GetS32("gPrevTime", gSaveContext.dayTime);
|
||||
gSaveContext.dayTime = prevTime;
|
||||
} else {
|
||||
CVar_SetS32("gPrevTime", -1);
|
||||
}
|
||||
|
||||
//since our CVar is same value and properly default to 0 there is not problems doing this in single line.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue