From 970476a745e00ff3490387645f77abc5558410c6 Mon Sep 17 00:00:00 2001 From: dusoleil Date: Sat, 23 Jul 2022 13:39:49 -0400 Subject: Ignore unused returns --- Chicken.gd | 2 +- Main.gd | 2 +- SmoothRotation.gd | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Chicken.gd b/Chicken.gd index 066d20f..09456fb 100644 --- a/Chicken.gd +++ b/Chicken.gd @@ -58,7 +58,7 @@ func state_moving(_delta): if mov_steps <= 0.0: anim.state.travel("IDLE") return - var vmp = move_and_slide(mov_velocity, Vector3.UP) + var _vmp = move_and_slide(mov_velocity, Vector3.UP) for index in range(get_slide_count()): var collision = get_slide_collision(index) if collision.collider.name == "Fence": diff --git a/Main.gd b/Main.gd index f7fdec7..90f92a8 100644 --- a/Main.gd +++ b/Main.gd @@ -18,5 +18,5 @@ func spawn_chicken(): func _ready(): randomize() - for i in range(num_chickens): + for _i in range(num_chickens): spawn_chicken() diff --git a/SmoothRotation.gd b/SmoothRotation.gd index f6df8c7..91d1f70 100644 --- a/SmoothRotation.gd +++ b/SmoothRotation.gd @@ -2,6 +2,6 @@ extends Tween func rotate_y(ang, speed): var parent = get_parent() - remove_all() - interpolate_property(parent, "rotation:y", parent.rotation.y, parent.rotation.y+ang,abs(ang/speed),Tween.TRANS_EXPO,Tween.EASE_OUT) - start() + var _ret = remove_all() + _ret = interpolate_property(parent, "rotation:y", parent.rotation.y, parent.rotation.y+ang,abs(ang/speed),Tween.TRANS_EXPO,Tween.EASE_OUT) + _ret = start() -- cgit v1.2.3