mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Scale with mapobjectscale
This commit is contained in:
parent
7132eeab48
commit
b1ec2d8f74
1 changed files with 3 additions and 2 deletions
|
|
@ -6787,6 +6787,7 @@ void K_StripOther(player_t *player)
|
||||||
static INT32 K_FlameShieldMax(player_t *player)
|
static INT32 K_FlameShieldMax(player_t *player)
|
||||||
{
|
{
|
||||||
UINT32 disttofinish = 0;
|
UINT32 disttofinish = 0;
|
||||||
|
UINT32 distv = DISTVAR;
|
||||||
UINT8 numplayers = 0;
|
UINT8 numplayers = 0;
|
||||||
UINT8 i;
|
UINT8 i;
|
||||||
|
|
||||||
|
|
@ -6808,8 +6809,8 @@ static INT32 K_FlameShieldMax(player_t *player)
|
||||||
}
|
}
|
||||||
|
|
||||||
disttofinish = player->distancetofinish - disttofinish;
|
disttofinish = player->distancetofinish - disttofinish;
|
||||||
|
distv = FixedDiv(distv * FRACUNIT, mapobjectscale) / FRACUNIT;
|
||||||
return min(16, 1 + (disttofinish / DISTVAR));
|
return min(16, 1 + (disttofinish / distv));
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue