- 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
1 changed files with 1 additions and 1 deletions

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);
}