Bugfix: Reset mario's room when switching areas (#504)

Mario's room sometimes is not reset when warping between different areas, generally when warping from one area with rooms to another without them. This can cause things like doors to not render properly.
This commit is contained in:
Gregory Heskett
2022-10-03 19:06:53 -04:00
committed by GitHub
parent 0dd3ef7f50
commit 68f09d34ea

View File

@@ -235,6 +235,8 @@ void load_area(s32 index) {
main_pool_pop_state();
main_pool_push_state();
gMarioCurrentRoom = 0;
if (gCurrentArea->terrainData != NULL) {
load_area_terrain(index, gCurrentArea->terrainData, gCurrentArea->surfaceRooms,
gCurrentArea->macroObjects);