- replaced ceilingz with a floating point variable, also in FCheckPosition.
This commit is contained in:
parent
6e2421bd37
commit
ec58e70078
25 changed files with 118 additions and 107 deletions
|
|
@ -552,9 +552,9 @@ DEFINE_ACTION_FUNCTION(AActor, A_MaulerTorpedoWave)
|
|||
|
||||
// If the torpedo hit the ceiling, it should still spawn the wave
|
||||
savedz = self->_f_Z();
|
||||
if (wavedef && self->ceilingz - self->_f_Z() < wavedef->height)
|
||||
if (wavedef && self->ceilingz < wavedef->Top())
|
||||
{
|
||||
self->_f_SetZ(self->ceilingz - wavedef->height);
|
||||
self->SetZ(self->ceilingz - wavedef->_Height());
|
||||
}
|
||||
|
||||
for (int i = 0; i < 80; ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue