This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG).
Revision | d9afeaf60ce8f05acadb512b9b60689858440dbb (tree) |
---|---|
Time | 2022-01-24 07:29:50 |
Author | Edoardo Prezioso <edward.san.dev@gmai...> |
Commiter | Edoardo Prezioso |
Fix a crash with the Hexen Firestorm weapon projectiles caused by a compiler misoptimization on Linux architecture.
@@ -120,8 +120,9 @@ | ||
120 | 120 | |
121 | 121 | DEFINE_ACTION_FUNCTION(AActor, A_CFlameMissile) |
122 | 122 | { |
123 | - int i; | |
124 | - int an, an90; | |
123 | + // [EP] Fix misoptimization, not needed in recent GZDoom | |
124 | + unsigned int i; | |
125 | + unsigned int an; | |
125 | 126 | fixed_t dist; |
126 | 127 | AActor *mo; |
127 | 128 |
@@ -141,7 +142,8 @@ | ||
141 | 142 | for (i = 0; i < 4; i++) |
142 | 143 | { |
143 | 144 | an = (i*ANG45)>>ANGLETOFINESHIFT; |
144 | - an90 = (i*ANG45+ANG90)>>ANGLETOFINESHIFT; | |
145 | + // [EP] Remove unused variable, will be removed also in GZDoom | |
146 | + // an90 = (i*ANG45+ANG90)>>ANGLETOFINESHIFT; | |
145 | 147 | mo = Spawn ("CircleFlame", BlockingMobj->x+FixedMul(dist, finecosine[an]), |
146 | 148 | BlockingMobj->y+FixedMul(dist, finesine[an]), |
147 | 149 | BlockingMobj->z+5*FRACUNIT, ALLOW_REPLACE); |