0
0
Fork 0
mirror of https://github.com/DrBeef/Raze.git synced 2025-03-22 17:21:00 +00:00

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

This commit is contained in:
Mitchell Richters 2022-10-11 17:12:35 +11:00 committed by Christoph Oelckers
parent 9d0b146470
commit db2f9b9b13

View file

@ -16695,7 +16695,7 @@ int InitGrenade(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);
auto oclipdist = actor->clipdist;
actor->clipdist = 0;