mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
- Fixed: The change in r3951 knew nothing about 3D floors.
SVN r4152 (trunk)
This commit is contained in:
parent
fef083f59c
commit
4fe9b6112a
1 changed files with 7 additions and 2 deletions
|
@ -550,9 +550,14 @@ bool P_Move (AActor *actor)
|
|||
{
|
||||
actor->z = savedz;
|
||||
}
|
||||
else if (actor->floorsector->SecActTarget != NULL)
|
||||
else
|
||||
{ // The monster just hit the floor, so trigger any actions.
|
||||
actor->floorsector->SecActTarget->TriggerAction(actor, SECSPAC_HitFloor);
|
||||
if (actor->floorsector->SecActTarget != NULL &&
|
||||
actor->floorz == actor->floorsector->floorplane.ZatPoint(actor->x, actor->y))
|
||||
{
|
||||
actor->floorsector->SecActTarget->TriggerAction(actor, SECSPAC_HitFloor);
|
||||
}
|
||||
P_CheckFor3DFloorHit(actor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue