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:
1 parent
0dd3ef7f50
commit
68f09d34ea
1 file changed
+2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user