Invert skip room proc obj (#605)

* Invert functionality of obj room proc to be opt-in

* Fixed comment for enabling profiler
This commit is contained in:
thecozies
2023-03-15 09:49:07 -05:00
committed by GitHub
parent 17498e081d
commit c09103d456
3 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@
/**
* Enables a comprehensive standalone profiler. Automatically enabled by PUPPYPRINT_DEBUG.
* If not using PUPPYPRINT_DEBUG, press L to toggle the profiler.
* If not using PUPPYPRINT_DEBUG, press L + D-Pad Up to toggle the profiler.
*/
#define USE_PROFILER

View File

@@ -55,7 +55,7 @@ enum ObjFlags {
OBJ_FLAG_OCCLUDE_SILHOUETTE = (1 << 20), // 0x00100000
OBJ_FLAG_OPACITY_FROM_CAMERA_DIST = (1 << 21), // 0x00200000
OBJ_FLAG_EMIT_LIGHT = (1 << 22), // 0x00400000
OBJ_FLAG_PROCESS_OUTSIDE_ROOM = (1 << 23), // 0x00800000
OBJ_FLAG_ONLY_PROCESS_INSIDE_ROOM = (1 << 23), // 0x00800000
OBJ_FLAG_HITBOX_WAS_SET = (1 << 30), // 0x40000000
};

View File

@@ -822,7 +822,7 @@ void cur_obj_update(void) {
s32 inRoom = is_mario_in_room();
if (!(objFlags & OBJ_FLAG_PROCESS_OUTSIDE_ROOM)) {
if (objFlags & OBJ_FLAG_ONLY_PROCESS_INSIDE_ROOM) {
if (inRoom == MARIO_OUTSIDE_ROOM) {
cur_obj_enable_disable_room_rendering(MARIO_OUTSIDE_ROOM);
return;