- fixed: A_MaceBallImpact2 was missing a check for hitting some liquid terrain.

This commit is contained in:
Christoph Oelckers 2016-01-29 12:21:35 +01:00
parent 7b1fbe0a02
commit fe271b4e78
1 changed files with 5 additions and 0 deletions

View File

@ -505,6 +505,11 @@ DEFINE_ACTION_FUNCTION(AActor, A_MaceBallImpact2)
AActor *tiny;
angle_t angle;
if ((self->Z() <= self->floorz) && P_HitFloor (self))
{ // Landed in some sort of liquid
self->Destroy ();
return;
}
if (self->flags & MF_INBOUNCE)
{
fixed_t floordist = self->Z() - self->floorz;