Puppylights

This commit is contained in:
Fazana committed 2021-09-07 12:13:40 +01:00
1 parent 2d58bddd06
commit 2a78404ef5
16 files changed
+505 -36

No files matched your search

+5
View File
@@ -13,6 +13,7 @@
#include "game/object_list_processor.h"
#include "graph_node.h"
#include "surface_collision.h"
#include "game/puppylights.h"
// Macros for retrieving arguments from behavior scripts.
#define BHV_CMD_GET_1ST_U8(index) (u8)((gCurBhvCommand[index] >> 24) & 0xFF) // unused
@@ -982,6 +983,10 @@ void cur_obj_update(void) {
obj_update_gfx_pos_and_angle(gCurrentObject);
}
#ifdef PUPPYLIGHTS
puppylights_object_emit(gCurrentObject);
#endif
// Handle visibility of object
if (gCurrentObject->oRoom != -1) {
// If the object is in a room, only show it when Mario is in the room.