Allow for faster consecutive gear switch

soundtrack
Ensar Sarajčić 2021-11-18 20:46:16 +01:00
parent 90c65dbcf9
commit 92c98a2c0f
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ func _get_gear_ratio():
func _handle_gear_switch(delta: float): func _handle_gear_switch(delta: float):
if gear_timer > 0: if gear_timer > 0:
gear_timer = max(0, gear_timer - delta) gear_timer = max(0, gear_timer - delta)
elif clutch_position > 0.8: if clutch_position > 0.8:
if Input.is_action_just_pressed("gear_up"): if Input.is_action_just_pressed("gear_up"):
if gear + 1 <= gear_ratios.size(): if gear + 1 <= gear_ratios.size():
gear += 1 gear += 1