diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2020-02-16 11:07:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-16 11:07:47 -0500 |
commit | 04130a97d9ff799c9f1b439d091c0116adb31bfb (patch) | |
tree | 7b610171c3d893d1cace513cf61e0b74014dbad2 /src/fieldmap.c | |
parent | fee980decd6dfd5dc98c15ba13c9ea8f7b597934 (diff) | |
parent | a4cd331634d1fcc5f7cb217c51c328c5769a9616 (diff) |
Merge pull request #239 from GriffinRichards/doc-ttower
Document Trainer Tower scripts
Diffstat (limited to 'src/fieldmap.c')
-rw-r--r-- | src/fieldmap.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fieldmap.c b/src/fieldmap.c index 0844087e0..90682da10 100644 --- a/src/fieldmap.c +++ b/src/fieldmap.c @@ -16,7 +16,7 @@ struct ConnectionFlags u8 east:1; }; -void sub_8058A00(struct MapHeader *mapHeader); +static void InitMapLayoutData(struct MapHeader *mapHeader); void map_copy_with_padding(u16 *map, u16 width, u16 height); void mapheader_copy_mapdata_of_adjacent_maps(struct MapHeader *mapHeader); void fillSouthConnection(struct MapHeader const *mapHeader, struct MapHeader const *connectedMapHeader, s32 offset); @@ -63,20 +63,20 @@ const struct MapHeader * mapconnection_get_mapheader(struct MapConnection * conn return Overworld_GetMapHeaderByGroupAndId(connection->mapGroup, connection->mapNum); } -void not_trainer_hill_battle_pyramid(void) +void InitMap(void) { - sub_8058A00(&gMapHeader); - mapheader_run_script_with_tag_x1(); + InitMapLayoutData(&gMapHeader); + RunOnLoadMapScript(); } -void sub_80589E8(void) +void InitMapFromSavedGame(void) { - sub_8058A00(&gMapHeader); + InitMapLayoutData(&gMapHeader); LoadSavedMapView(); - mapheader_run_script_with_tag_x1(); + RunOnLoadMapScript(); } -void sub_8058A00(struct MapHeader * mapHeader) +static void InitMapLayoutData(struct MapHeader * mapHeader) { const struct MapLayout * mapLayout = mapHeader->mapLayout; CpuFastFill(0x03FF03FF, gBackupMapLayout, sizeof(gBackupMapLayout)); |