- fixed scaling issue with Duke's green slimer.

This commit is contained in:
Christoph Oelckers 2022-10-25 20:28:32 +02:00
parent 0c87bcb91b
commit 09df4da241

View file

@ -2302,13 +2302,13 @@ static void greenslime(DDukeActor *actor)
if (actor->spr.scale.Y < 1) actor->spr.scale.Y += (0.03125); if (actor->spr.scale.Y < 1) actor->spr.scale.Y += (0.03125);
else else
{ {
if (actor->spr.scale.X < 0.5) actor->spr.scale.Y += (0.0625); if (actor->spr.scale.X < 0.5) actor->spr.scale.X += (0.0625);
else else
{ {
actor->temp_data[0] = -1; actor->temp_data[0] = -1;
double dist = (actor->spr.pos.XY() - s5->spr.pos.XY()).LengthSquared(); double dist = (actor->spr.pos.XY() - s5->spr.pos.XY()).LengthSquared();
if (dist < 48*48) { if (dist < 48*48) {
s5->spr.scale.X = (0); s5->spr.scale.X = 0;
} }
} }
} }