summaryrefslogtreecommitdiff
path: root/mm/src/code
diff options
context:
space:
mode:
authorRalphie Morell <rafael.morell@techfield.us>2024-02-18 22:47:14 -0500
committerGarrett Cox <garrettjcox@gmail.com>2024-05-22 09:04:59 -0500
commita2ae88987a2eabb53dc502f21457bbd6ef7fdab2 (patch)
tree6a4fac7ecb648e170d2f0cef6bd4aadd148f0d6f /mm/src/code
parentfdbd495ca6b085725ea9b7a03ad88355be400bd3 (diff)
Actor Viewer (#123)
Diffstat (limited to 'mm/src/code')
-rw-r--r--mm/src/code/z_scene.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/src/code/z_scene.c b/mm/src/code/z_scene.c
index 4da709541..38b031e83 100644
--- a/mm/src/code/z_scene.c
+++ b/mm/src/code/z_scene.c
@@ -1,4 +1,5 @@
#include "global.h"
+#include <libultraship/bridge.h>
/**
* Spawn an object file of a specified ID that will persist through room changes.
@@ -115,7 +116,7 @@ s32 Object_GetSlot(ObjectContext* objectCtx, s16 objectId) {
}
}
- return -1;
+ return CVarGetInteger("gObjDep", 0) ? 0 : -1;
}
s32 Object_IsLoaded(ObjectContext* objectCtx, s32 slot) {