Comment the tire grease change

This commit is contained in:
Sally Coolatta 2021-11-28 15:13:54 -05:00
parent 3536c73b66
commit e4b27933f2

View file

@ -482,12 +482,20 @@ fixed_t K_BotFrictionRubberband(player_t *player, fixed_t frict)
fixed_t rubberband = K_BotRubberband(player) - FRACUNIT;
fixed_t origFrict, newFrict;
if (rubberband <= 0 || player->tiregrease > 0)
if (rubberband <= 0)
{
// Never get weaker than normal friction
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));
if (frict == ORIG_FRICTION)