foxygit / doom Log in
commit 21668aca6379e2eaf65a40831f88cb6be9e0513d
Author:     James Haley <haleyjd@hotmail.com>
AuthorDate: Wed Mar 9 19:57:31 2016 -0600
Commit:     James Haley <haleyjd@hotmail.com>
CommitDate: Wed Mar 9 19:57:31 2016 -0600

    Cast player pitch to unsigned when calculating sigil mega blast trajectory
---
 src/strife/p_pspr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/strife/p_pspr.c b/src/strife/p_pspr.c
index 2d25c07b..4295c977 100644
--- a/src/strife/p_pspr.c
+++ b/src/strife/p_pspr.c
@@ -854,7 +854,7 @@ void A_FireSigil(player_t* player, pspdef_t* pspr)
         mo->health = -1;
         if(!linetarget)
         {
-            an = player->pitch >> ANGLETOFINESHIFT;
+            an = (unsigned int)player->pitch >> ANGLETOFINESHIFT;
             mo->momz += FixedMul(finesine[an], mo->info->speed);
         }
         break;