From 06618d9e2157f281b2092a683ce108b0bcbcd5e4 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Thu, 15 Sep 2022 14:25:21 +0300 Subject: [PATCH] Uninline wmAreaSetVisibleState --- src/worldmap.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/worldmap.cc b/src/worldmap.cc index 38aff3b..03f581a 100644 --- a/src/worldmap.cc +++ b/src/worldmap.cc @@ -3364,13 +3364,11 @@ static int wmWorldMapFunc(int a1) int wmCheckGameAreaEvents() { if (wmGenData.currentAreaId == CITY_FAKE_VAULT_13_A) { - if (wmGenData.currentAreaId < wmMaxAreaNum) { - wmAreaInfoList[CITY_FAKE_VAULT_13_A].state = CITY_STATE_UNKNOWN; - } + // NOTE: Uninline. + wmAreaSetVisibleState(CITY_FAKE_VAULT_13_A, CITY_STATE_UNKNOWN, true); - if (wmMaxAreaNum > CITY_FAKE_VAULT_13_B) { - wmAreaInfoList[CITY_FAKE_VAULT_13_B].state = CITY_STATE_KNOWN; - } + // NOTE: Uninline. + wmAreaSetVisibleState(CITY_FAKE_VAULT_13_B, CITY_STATE_KNOWN, true); wmAreaMarkVisitedState(CITY_FAKE_VAULT_13_B, 2); }