mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Fix monty moles in Star Road
This commit is contained in:
parent
feee5eb569
commit
d1bd8f1bfb
1 changed files with 8 additions and 0 deletions
|
|
@ -410,6 +410,14 @@ void bhv_monty_mole_update(void) {
|
||||||
o->oDeathSound = SOUND_OBJ_DYING_ENEMY1;
|
o->oDeathSound = SOUND_OBJ_DYING_ENEMY1;
|
||||||
cur_obj_update_floor_and_walls();
|
cur_obj_update_floor_and_walls();
|
||||||
|
|
||||||
|
// if we can't find our floor, set it to the hole's floor
|
||||||
|
if (!o->oFloor && o->oMontyMoleCurrentHole) {
|
||||||
|
struct Object* hole = o->oMontyMoleCurrentHole;
|
||||||
|
struct Surface* floor = NULL;
|
||||||
|
o->oFloorHeight = find_floor(hole->oPosX, hole->oPosY, hole->oPosZ, &floor);
|
||||||
|
o->oFloor = floor;
|
||||||
|
}
|
||||||
|
|
||||||
o->oMontyMoleHeightRelativeToFloor = o->oPosY - o->oFloorHeight;
|
o->oMontyMoleHeightRelativeToFloor = o->oPosY - o->oFloorHeight;
|
||||||
|
|
||||||
switch (o->oAction) {
|
switch (o->oAction) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue