mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
K_DrawDraftCombiring: do not read outside of colors array
This commit is contained in:
parent
5085bdfdd8
commit
0da18745d9
1 changed files with 1 additions and 1 deletions
|
|
@ -1182,7 +1182,7 @@ static void K_DrawDraftCombiring(player_t *player, mobj_t *victim, fixed_t curdi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
c = FixedMul(CHAOTIXBANDCOLORS<<FRACBITS, FixedDiv(curdist-minimumdist, maxdist-minimumdist)) >> FRACBITS;
|
c = FixedMul((CHAOTIXBANDCOLORS - 1)<<FRACBITS, FixedDiv(curdist-minimumdist, maxdist-minimumdist)) >> FRACBITS;
|
||||||
}
|
}
|
||||||
|
|
||||||
stepx = (victim->x - player->mo->x) / CHAOTIXBANDLEN;
|
stepx = (victim->x - player->mo->x) / CHAOTIXBANDLEN;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue