Exhumed: fix handling of angles for the queen's eggs when colliding with a wall.

This commit is contained in:
Christoph Oelckers 2023-11-06 17:02:26 +01:00
parent 5d68927e21
commit 47a77fc8f1

View file

@ -644,7 +644,7 @@ void AIQueenEgg::Tick(RunListEvent* ev)
}
[[fallthrough]];
case kHitWall:
pActor->spr.Angles.Yaw = (DAngle45 + DAngle90 + RandomAngle9()).Normalized360();
pActor->spr.Angles.Yaw += (DAngle45 + DAngle90 + RandomAngle9()).Normalized360();
pActor->VelFromAngle(-3);
pActor->vel.Z = (-RandomSize(5)) / 256.;
break;