clean up get_song_variation_override_for_cur_map

This commit is contained in:
Alex Bates 2020-10-30 19:19:17 +00:00
parent 2a1c35a80c
commit 7fa97805b9
No known key found for this signature in database
GPG Key ID: 5E11C2DB78877706
1 changed files with 1 additions and 3 deletions

View File

@ -12,12 +12,10 @@ s32 get_song_variation_override_for_cur_map(SongID songID) {
u32 i = 0;
Area* areas = gAreas;
SongID* allowed = gSongsUsingVariationFlag;
GameStatus** gameStatusPtr = gGameStatusPtr;
for (i = 0; i < ARRAY_COUNT(gSongsUsingVariationFlag); i++) {
if (allowed[i] == songID) {
GameStatus* gameStatus = *gameStatusPtr;
Map* map = &areas[gameStatus->areaID].maps[gameStatus->mapID];
Map* map = &areas[GAME_STATUS->areaID].maps[GAME_STATUS->mapID];
return map->flags2 & 1;
}