- floatify hande_se35

This looks broken because the destination height is never set anywhere.
This commit is contained in:
Christoph Oelckers 2022-09-12 23:39:14 +02:00
parent 4196195b89
commit 68bc812681

View file

@ -4530,9 +4530,9 @@ void handle_se35(DDukeActor *actor, int SMALLSMOKE, int EXPLOSION2)
break; break;
case 1: case 1:
sc->addceilingz(-targetval * 4); sc->addceilingz(-targetval * 4);
if (sc->int_ceilingz() < actor->temp_data[4]) if (sc->ceilingz < actor->temp_pos.Y)
{ {
sc->set_int_ceilingz(actor->temp_data[4]); sc->setceilingz(actor->temp_pos.Y);
actor->temp_data[0] = 0; actor->temp_data[0] = 0;
} }
break; break;