mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Make infinite tether rainbowy
This commit is contained in:
parent
9a250d3808
commit
ba8c511bb4
1 changed files with 5 additions and 1 deletions
|
|
@ -1700,9 +1700,13 @@ static void K_DrawDraftCombiring(player_t *player, player_t *victim, fixed_t cur
|
||||||
UINT8 c;
|
UINT8 c;
|
||||||
|
|
||||||
if (maxdist == 0)
|
if (maxdist == 0)
|
||||||
c = 0;
|
{
|
||||||
|
c = leveltime % CHAOTIXBANDCOLORS;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
c = FixedMul(CHAOTIXBANDCOLORS<<FRACBITS, FixedDiv(curdist-minimumdist, maxdist-minimumdist)) >> FRACBITS;
|
c = FixedMul(CHAOTIXBANDCOLORS<<FRACBITS, FixedDiv(curdist-minimumdist, maxdist-minimumdist)) >> FRACBITS;
|
||||||
|
}
|
||||||
|
|
||||||
stepx = (victim->mo->x - player->mo->x) / CHAOTIXBANDLEN;
|
stepx = (victim->mo->x - player->mo->x) / CHAOTIXBANDLEN;
|
||||||
stepy = (victim->mo->y - player->mo->y) / CHAOTIXBANDLEN;
|
stepy = (victim->mo->y - player->mo->y) / CHAOTIXBANDLEN;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue