mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-19 08:01:50 +00:00
- changed pitch math in P_RailAttack to avoid having to deal with bogus math throughout the entire function. Effectively the only thing this changes is passing the correct pitch to P_DrawRailTrail.
This commit is contained in:
parent
39d2945016
commit
54822c29eb
1 changed files with 2 additions and 2 deletions
|
@ -4920,10 +4920,10 @@ void P_RailAttack(FRailParams *p)
|
||||||
}
|
}
|
||||||
|
|
||||||
AActor *source = p->source;
|
AActor *source = p->source;
|
||||||
DAngle pitch = -source->Angles.Pitch + p->pitchoffset;
|
DAngle pitch = source->Angles.Pitch + p->pitchoffset;
|
||||||
DAngle angle = source->Angles.Yaw + p->angleoffset;
|
DAngle angle = source->Angles.Yaw + p->angleoffset;
|
||||||
|
|
||||||
DVector3 vec(DRotator(pitch, angle, angle));
|
DVector3 vec(DRotator(-pitch, angle, angle));
|
||||||
double shootz = source->Center() - source->FloatSpeed + p->offset_z;
|
double shootz = source->Center() - source->FloatSpeed + p->offset_z;
|
||||||
|
|
||||||
if (!(p->flags & RAF_CENTERZ))
|
if (!(p->flags & RAF_CENTERZ))
|
||||||
|
|
Loading…
Reference in a new issue