mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Comment the tire grease change
This commit is contained in:
parent
3536c73b66
commit
e4b27933f2
1 changed files with 9 additions and 1 deletions
10
src/k_bot.c
10
src/k_bot.c
|
|
@ -482,12 +482,20 @@ fixed_t K_BotFrictionRubberband(player_t *player, fixed_t frict)
|
||||||
fixed_t rubberband = K_BotRubberband(player) - FRACUNIT;
|
fixed_t rubberband = K_BotRubberband(player) - FRACUNIT;
|
||||||
fixed_t origFrict, newFrict;
|
fixed_t origFrict, newFrict;
|
||||||
|
|
||||||
if (rubberband <= 0 || player->tiregrease > 0)
|
if (rubberband <= 0)
|
||||||
{
|
{
|
||||||
// Never get weaker than normal friction
|
// Never get weaker than normal friction
|
||||||
return frict;
|
return frict;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (player->tiregrease > 0)
|
||||||
|
{
|
||||||
|
// This isn't great -- it means rubberbanding will slow down when they hit a spring
|
||||||
|
// But it's better than the opposite where they accelerate into hyperspace :V
|
||||||
|
// (would appreciate an actual fix though ... could try being additive instead of multiplicative)
|
||||||
|
return frict;
|
||||||
|
}
|
||||||
|
|
||||||
origFrict = FixedDiv(ORIG_FRICTION, FRACUNIT + (rubberband / 2));
|
origFrict = FixedDiv(ORIG_FRICTION, FRACUNIT + (rubberband / 2));
|
||||||
|
|
||||||
if (frict == ORIG_FRICTION)
|
if (frict == ORIG_FRICTION)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue