mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 01:02:03 +00:00
- Fixed: When using CMF_ABSOLUTEPITCH or CMF_OFFSETPITCH, A_CustomMissile could calculate a
negative missile speed. SVN r3565 (trunk)
This commit is contained in:
parent
6cb99dab3e
commit
5bf3b7113e
1 changed files with 1 additions and 1 deletions
|
@ -919,7 +919,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CustomMissile)
|
|||
pitch += R_PointToAngle2(0,0, (fixed_t)velocity.Length(), missile->velz);
|
||||
}
|
||||
ang = pitch >> ANGLETOFINESHIFT;
|
||||
missilespeed = FixedMul(finecosine[ang], missile->Speed);
|
||||
missilespeed = abs(FixedMul(finecosine[ang], missile->Speed));
|
||||
missile->velz = FixedMul(finesine[ang], missile->Speed);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue