From 9b53a138fa7907b7887e16d4a0ef61d2c0f3b52d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Fri, 19 Nov 2021 18:42:35 +0100 Subject: [PATCH] Add reformatted vehicle file --- vehicles/vehicle.gd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vehicles/vehicle.gd b/vehicles/vehicle.gd index 1728a12..8c09b19 100644 --- a/vehicles/vehicle.gd +++ b/vehicles/vehicle.gd @@ -144,7 +144,13 @@ func _physics_process(delta: float): throttle = brake_input brake_input = swap - if GlobalSettings.automatic_transmission and speed >= 0 and speed < 1 and gear == 1 and brake_input > 0.1: + if ( + GlobalSettings.automatic_transmission + and speed >= 0 + and speed < 1 + and gear == 1 + and brake_input > 0.1 + ): _gear_down() _gear_down()