shithub: choc

Download patch

ref: 21668aca6379e2eaf65a40831f88cb6be9e0513d
parent: 4077f339e7a70fea357b047d8b6fd722b00f283b
author: James Haley <[email protected]>
date: Wed Mar 9 14:57:31 EST 2016

Cast player pitch to unsigned when calculating sigil mega blast trajectory

--- a/src/strife/p_pspr.c
+++ b/src/strife/p_pspr.c
@@ -854,7 +854,7 @@
         mo->health = -1;
         if(!linetarget)
         {
-            an = player->pitch >> ANGLETOFINESHIFT;
+            an = (unsigned int)player->pitch >> ANGLETOFINESHIFT;
             mo->momz += FixedMul(finesine[an], mo->info->speed); 
         }
         break;