- Fixed: When using CMF_ABSOLUTEPITCH or CMF_OFFSETPITCH, A_CustomMissile could calculate a

negative missile speed.

SVN r3565 (trunk)
This commit is contained in:
Randy Heit 2012-04-15 02:43:37 +00:00
parent 6cb99dab3e
commit 5bf3b7113e

View file

@ -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