- fixed: P_RailAttack did not make adjustments for the shooter's floorclip.

This commit is contained in:
Christoph Oelckers 2017-01-21 10:55:19 +01:00
commit 19df603f92
2 changed files with 7 additions and 1 deletions

View file

@ -5011,7 +5011,7 @@ void P_RailAttack(FRailParams *p)
DAngle angle = source->Angles.Yaw + p->angleoffset;
DVector3 vec(DRotator(-pitch, angle, angle));
double shootz = source->Center() - source->FloatSpeed + p->offset_z;
double shootz = source->Center() - source->FloatSpeed + p->offset_z - source->Floorclip;
if (!(p->flags & RAF_CENTERZ))
{