only set rooms while in a new room (#682)

This commit is contained in:
thecozies
2023-09-18 08:36:53 -05:00
committed by GitHub
parent 0a7e44de0e
commit 63ddb28641

View File

@@ -129,10 +129,10 @@ Gfx *geo_switch_area(s32 callContext, struct GraphNode *node, UNUSED void *conte
gMarioObject->oPosZ
);
gMarioCurrentRoom = room;
print_debug_top_down_objectinfo("areainfo %d", room);
if (room > 0) {
gMarioCurrentRoom = room;
switchCase->selectedCase = (room - 1);
}
} else {