From bbfd4129cede673c2b416d4e4a98e8ea534f2cff Mon Sep 17 00:00:00 2001 From: Reonu Date: Mon, 24 May 2021 22:36:56 +0100 Subject: [PATCH] bparam4 fix --- README.md | 1 + src/game/object_list_processor.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 849a743f..3e8af652 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Fork of the ultrasm64 repo by CrashOveride which includes the following commonly - If you don't want this, you can disable it by removing `#define wide` in `ingame_menu.c` - Removed course-specific camera processing - Increased maximum pole lenght (The game will read bparam1 and bparam2 together as a single value, so you can have a Snake Eater pole) +- bparam4 fix (the game no longer uses bparam4 to check if an object is mario and therefore you can safely use it) It also uncringes the way that apply_patch.sh works, and removes the black border. diff --git a/src/game/object_list_processor.c b/src/game/object_list_processor.c index d01f5eb4..8e6cf9d0 100644 --- a/src/game/object_list_processor.c +++ b/src/game/object_list_processor.c @@ -495,7 +495,7 @@ void spawn_objects_from_info(UNUSED s32 unused, struct SpawnInfo *spawnInfo) { object->respawnInfoType = RESPAWN_INFO_TYPE_32; object->respawnInfo = &spawnInfo->behaviorArg; - if (spawnInfo->behaviorArg & 0x01) { + if (object->behavior == segmented_to_virtual(bhvMario)) { gMarioObject = object; geo_make_first_child(&object->header.gfx.node); }