diff options
author | Marcus Huderle <huderlem@gmail.com> | 2018-12-27 16:30:47 -0600 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2018-12-27 16:52:13 -0600 |
commit | d59f5a8e5649ad09a41b65edcc68f701320ca52e (patch) | |
tree | b05721bd6ec8578fb3ac04fb30fbd65cec4cc335 /src/egg_hatch.c | |
parent | 2c0f5f58e9234f34f5f4aa2ffae931a57c6cf19e (diff) |
Misc overworld documentation
Diffstat (limited to 'src/egg_hatch.c')
-rw-r--r-- | src/egg_hatch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/egg_hatch.c b/src/egg_hatch.c index a7b3e30b0..c2e57f8b5 100644 --- a/src/egg_hatch.c +++ b/src/egg_hatch.c @@ -379,7 +379,7 @@ static void AddHatchedMonToParty(u8 id) caughtLvl = 0; SetMonData(mon, MON_DATA_MET_LEVEL, &caughtLvl); - mapNameID = sav1_map_get_name(); + mapNameID = GetCurrentRegionMapSectionId(); SetMonData(mon, MON_DATA_MET_LOCATION, &mapNameID); MonRestorePP(mon); @@ -471,7 +471,7 @@ static void Task_EggHatch(u8 taskID) { if (!gPaletteFade.active) { - overworld_free_bg_tilemaps(); + CleanupOverworldWindowsAndTilemaps(); SetMainCallback2(CB2_EggHatch_0); gFieldCallback = sub_80AF168; DestroyTask(taskID); |