diff options
Diffstat (limited to 'client/map/items/item.gd')
| -rw-r--r-- | client/map/items/item.gd | 11 | 
1 files changed, 6 insertions, 5 deletions
| diff --git a/client/map/items/item.gd b/client/map/items/item.gd index 2d046700..e67edcca 100644 --- a/client/map/items/item.gd +++ b/client/map/items/item.gd @@ -50,12 +50,13 @@ func _process(delta):  	if p: rotation.y = G.interpolate_angle(rotation.y, owned_by.global_rotation.y, delta * ispeed)  	else: rotation.y = G.interpolate_angle_closest_quarter(rotation.y, owned_by.global_rotation.y, delta * ispeed) -func progress(p: float, warn: bool): +func progress(position_: float, speed: float, warn: bool):  	progress_instance.visible = true -	progress_instance.set_progress(p, warn) -	# this shoukd be removed when the server is fixed -	if p >= 1.: -		finish(warn) +	progress_instance.update(position_, speed, warn) +	 +	# TODO: Fix finish +	# if p >= 1.: +	#	finish(warn)  func finish(_warn: bool):  	progress_instance.visible = false | 
