Fix Toad messages, and likely other things related to behParams
This commit is contained in:
parent
b2bd29383b
commit
08f72749c9
|
@ -505,7 +505,7 @@ void spawn_objects_from_info(UNUSED s32 unused, struct SpawnInfo *spawnInfo) {
|
||||||
object->respawnInfo = &spawnInfo->behaviorArg;
|
object->respawnInfo = &spawnInfo->behaviorArg;
|
||||||
|
|
||||||
// found a player
|
// found a player
|
||||||
if (spawnInfo->behaviorArg & (1 << 31)) {
|
if (spawnInfo->behaviorArg & (1 << 31) && object->behavior == bhvMario) {
|
||||||
u16 playerIndex = (spawnInfo->behaviorArg & ~(1 << 31));
|
u16 playerIndex = (spawnInfo->behaviorArg & ~(1 << 31));
|
||||||
object->oBehParams = playerIndex + 1;
|
object->oBehParams = playerIndex + 1;
|
||||||
gMarioObjects[playerIndex] = object;
|
gMarioObjects[playerIndex] = object;
|
||||||
|
|
Loading…
Reference in New Issue