summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorRalphie Morell <stratomaster64@gmail.com>2022-05-02 18:24:39 -0400
committerGitHub <noreply@github.com>2022-05-02 18:24:39 -0400
commit43294d66b5202bf719b805d2103ccac19132feda (patch)
tree7985390a87c921dae09160dfc10d9d13e8f8813b /soh/src/code
parent18d2bac409d32c59022ac5293eec80682fa13648 (diff)
Fix Cheat Menuing (#237)
* readded cheats to menu; fixed bug with freezing time * removed extraneous dev tools section
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/game.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/soh/src/code/game.c b/soh/src/code/game.c
index eea895ce1..a411523ec 100644
--- a/soh/src/code/game.c
+++ b/soh/src/code/game.c
@@ -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.