Apparently P_SpawnPlayerMissile doesn't use the correct angle to calculate the trajectory of the missile.
Here it sets the missile's angle to the direction that was calculated after aiming but a few lines later
Code: Select all
vx = FixedMul (finecosine[pitch>>ANGLETOFINESHIFT], finecosine[angle>>ANGLETOFINESHIFT]);
vy = FixedMul (finecosine[pitch>>ANGLETOFINESHIFT], finesine[angle>>ANGLETOFINESHIFT]);
it uses the original angle passed to it to calculate the missiles' direction. I checked both Doom's and Hexen's sources and both use the altered angle for the direction calculation.
Question: Is this a bug or intentional?