- fixed floatification error in A_MaulerTorpedoWave.

This commit is contained in:
Christoph Oelckers 2016-09-06 22:34:59 +02:00
parent 3ce25bc348
commit 5a3147407e

View file

@ -552,7 +552,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_MaulerTorpedoWave)
// If the torpedo hit the ceiling, it should still spawn the wave
savedz = self->Z();
if (wavedef && self->ceilingz < wavedef->Top())
if (wavedef && self->ceilingz < self->Z() + wavedef->height)
{
self->SetZ(self->ceilingz - wavedef->Height);
}