mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Sanity check pokey body parts
This commit is contained in:
parent
81f2102bb0
commit
2b5c830cc4
1 changed files with 5 additions and 0 deletions
|
|
@ -45,6 +45,11 @@ void bhv_pokey_body_part_update(void) {
|
||||||
s16 offsetAngle;
|
s16 offsetAngle;
|
||||||
f32 baseHeight;
|
f32 baseHeight;
|
||||||
|
|
||||||
|
if (o->parentObj == NULL || o->parentObj->behavior != bhvPokey || o->parentObj->activeFlags == ACTIVE_FLAG_DEACTIVATED) {
|
||||||
|
obj_mark_for_deletion(o);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (obj_update_standard_actions(3.0f)) {
|
if (obj_update_standard_actions(3.0f)) {
|
||||||
if (o->parentObj->oAction == POKEY_ACT_UNLOAD_PARTS) {
|
if (o->parentObj->oAction == POKEY_ACT_UNLOAD_PARTS) {
|
||||||
obj_mark_for_deletion(o);
|
obj_mark_for_deletion(o);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue