From 09496abef0101ce2e8eaf3d1e8dfddd1969fb8eb Mon Sep 17 00:00:00 2001 From: Evan Date: Mon, 14 Dec 2020 08:59:57 -0700 Subject: [PATCH] reset VAR_TERRAIN on whiteout --- src/overworld.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/overworld.c b/src/overworld.c index 223e6e152..2fac455a3 100644 --- a/src/overworld.c +++ b/src/overworld.c @@ -403,6 +403,9 @@ static void Overworld_ResetStateAfterWhiteOut(void) FlagClear(FLAG_SYS_SAFARI_MODE); FlagClear(FLAG_SYS_USE_STRENGTH); FlagClear(FLAG_SYS_USE_FLASH); + #if VAR_TERRAIN != 0 + VarSet(VAR_TERRAIN, 0); + #endif // If you were defeated by Kyogre/Groudon and the step counter has // maxed out, end the abnormal weather. if (VarGet(VAR_SHOULD_END_ABNORMAL_WEATHER) == 1)