[Fixed] Angle issue in P_SpawnPlayerMissile

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Angle issue in P_SpawnPlayerMissile

Post by Graf Zahl »

Apparently P_SpawnPlayerMissile doesn't use the correct angle to calculate the trajectory of the missile.

Code: Select all

	MissileActor->angle = an;
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?
User avatar
randi
Site Admin
Posts: 7750
Joined: Wed Jul 09, 2003 10:30 pm

Post by randi »

It is a bug. Fixed.

Return to “Closed Bugs [GZDoom]”