Skip to content

Commit 284a26a

Browse files
committed
Tweak P_SpawnPlayerMissile
1 parent 5bfa419 commit 284a26a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/p_mobj.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,10 +979,11 @@ P_SpawnPlayerMissile
979979

980980
th->target = source;
981981
th->angle = an;
982+
an >>= ANGLETOFINESHIFT;
982983
th->momx = FixedMul( th->info->speed,
983-
finecosine[an>>ANGLETOFINESHIFT]);
984+
finecosine[an]);
984985
th->momy = FixedMul( th->info->speed,
985-
finesine[an>>ANGLETOFINESHIFT]);
986+
finesine[an]);
986987
th->momz = FixedMul( th->info->speed, slope);
987988

988989
P_CheckMissileSpawn (th);

0 commit comments

Comments
 (0)