- SW: Pitch-adjusted velocity for PlayerInitCaltrops().

This commit is contained in:
Mitchell Richters 2022-10-11 17:56:10 +11:00 committed by Christoph Oelckers
parent b6665a9855
commit 84dbd935d7

View file

@ -1655,7 +1655,7 @@ int PlayerInitCaltrops(PLAYER* pp)
if (pp->Flags & (PF_DIVING) || SpriteInUnderwaterArea(actorNew))
actorNew->user.Flags |= (SPR_UNDERWATER);
actorNew->vel.Z += pp->horizon.horiz.Tan() * HORIZ_MULTF;
setFreeAimVelocity(actorNew->vel.X, actorNew->vel.Z, pp->horizon.horiz, HORIZ_MULTF);
double oclipdist = plActor->clipdist;
plActor->clipdist = 0;