mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-12-05 15:43:02 +00:00
Bugfix for spiny override ownership
This commit is contained in:
parent
2fb2fc81e1
commit
392471eb1f
1 changed files with 1 additions and 0 deletions
|
|
@ -180,6 +180,7 @@ static void spiny_act_thrown_by_lakitu(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void bhv_spiny_override_ownership(u8* shouldOverride, u8* shouldOwn) {
|
void bhv_spiny_override_ownership(u8* shouldOverride, u8* shouldOwn) {
|
||||||
|
if (o->parentObj == NULL || o->parentObj->activeFlags == ACTIVE_FLAG_DEACTIVED) { return; }
|
||||||
*shouldOverride = (o->parentObj->behavior == bhvEnemyLakitu);
|
*shouldOverride = (o->parentObj->behavior == bhvEnemyLakitu);
|
||||||
*shouldOwn = network_owns_object(o->parentObj);
|
*shouldOwn = network_owns_object(o->parentObj);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue