fix star spawn cutscene softlock

This commit is contained in:
Isaac0-dev 2024-11-27 09:57:53 +10:00
parent 268e759829
commit e54aec5407
2 changed files with 4 additions and 2 deletions

View file

@ -169,7 +169,9 @@ void bhv_star_spawn_loop(void) {
o->oInteractStatus = 0;
}
network_send_object(o);
struct SyncObject* so = sync_object_get(o->oSyncID);
so->owned = sync_object_should_own(so->id);
if (so->owned) { network_send_object(o); }
break;
}
spawn_star_number();

View file

@ -436,7 +436,7 @@ void network_receive_object(struct Packet* p) {
}
// apply platform displacement
if (o != NULL) {
if (o != NULL && o->collisionData) {
Vec3f deltaPos = { 0 };
deltaPos[0] = o->oPosX - oldPos[0];
deltaPos[2] = o->oPosY - oldPos[1];