bparam4 fix

This commit is contained in:
Reonu committed 2021-05-24 22:41:42 +01:00
1 parent 8f8b24764a
commit bbfd4129ce
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -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.
+1 -1
View File
@@ -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);
}