mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Merge branch 'fix-combiring-bounds-error' into 'master'
K_DrawDraftCombiring: do not read outside of colors array See merge request KartKrew/Kart!1189
This commit is contained in:
commit
81b1cc8492
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