aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/player/player.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/player/player.gd b/client/player/player.gd
index c8f61ca7..dd705423 100644
--- a/client/player/player.gd
+++ b/client/player/player.gd
@@ -34,6 +34,7 @@ var rotation_anim = 0.
var position_ = Vector2(0, 0)
var position_anim = Vector2(0, 0)
var boosting := false
+var boost_pressed := false # only used in non-controllable players
var walking := false
var username: String
@@ -127,7 +128,7 @@ func _ready():
func update_position(new_position: Vector2, new_direction: Vector2, new_rotation: float, new_boosting: bool):
position_ = new_position
rotation_ = new_rotation
- boosting = new_boosting
+ boost_pressed = new_boosting
direction = new_direction
func update_movement(dt: float, boost: bool):
@@ -253,7 +254,7 @@ func _process(delta):
delta -= dt
func _process_movement(dt):
- update_movement(dt, boosting)
+ update_movement(dt, boost_pressed)
func item_message(item_name: String, timeout_initial: float, timeout_remaining: float):
if item_bubble != null: