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

This commit is contained in:
Mitchell Richters 2022-10-11 17:55:03 +11:00 committed by Christoph Oelckers
parent 8193416e7e
commit b6665a9855

View file

@ -1285,7 +1285,7 @@ int PlayerInitChemBomb(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;