mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 03:51:46 +00:00
Fix exclamation box spawns models and sync (#560)
This commit is contained in:
parent
36f0d1fcb7
commit
875a1f975e
1 changed files with 5 additions and 4 deletions
|
|
@ -134,10 +134,11 @@ void exclamation_box_spawn_contents(struct ExclamationBoxContent *content, u8 it
|
|||
// send non-star spawn events
|
||||
// stars cant be sent here due to jankiness in oBehParams
|
||||
if (content->behavior != get_id_from_behavior(smlua_override_behavior(bhvSpawnedStar)) && spawnedObject != NULL) {
|
||||
// hack: if any other sync objects get spawned here we have to check for them
|
||||
if (content->behavior == get_id_from_behavior(smlua_override_behavior(bhvKoopaShell))) {
|
||||
sync_object_set_id(spawnedObject);
|
||||
}
|
||||
// hack: Sync everything
|
||||
sync_object_set_id(spawnedObject);
|
||||
struct SyncObject* so = sync_object_get(spawnedObject->oSyncID);
|
||||
so->extendedModelId = content->model;
|
||||
|
||||
struct Object* spawn_objects[] = { spawnedObject };
|
||||
u32 models[] = { model };
|
||||
network_send_spawn_objects(spawn_objects, models, 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue