mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-03 20:26:05 +00:00
No flashing tics in Battle
This commit is contained in:
parent
c68e8fac97
commit
9e5b70ad8f
2 changed files with 10 additions and 3 deletions
11
src/k_kart.c
11
src/k_kart.c
|
|
@ -2962,11 +2962,18 @@ UINT16 K_GetKartFlashing(player_t *player)
|
|||
{
|
||||
UINT16 tics = flashingtics;
|
||||
|
||||
if (!player)
|
||||
if (gametype == GT_BATTLE)
|
||||
{
|
||||
// TODO: gametyperules
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (player == NULL)
|
||||
{
|
||||
return tics;
|
||||
}
|
||||
|
||||
tics += (tics/8) * (player->kartspeed);
|
||||
|
||||
return tics;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4555,7 +4555,7 @@ void P_PlayerThink(player_t *player)
|
|||
|| (player->pflags & PF_NOCONTEST) // NO CONTEST explosion
|
||||
|| ((gametyperules & GTR_BUMPERS) && player->bumpers <= 0 && player->karmadelay)))
|
||||
{
|
||||
if (player->flashing > 0 && player->flashing < K_GetKartFlashing(player)
|
||||
if (player->flashing > 1 && player->flashing < K_GetKartFlashing(player)
|
||||
&& (leveltime & 1))
|
||||
player->mo->renderflags |= RF_DONTDRAW;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue