From 2c2051c8ecccb853bceb4ce4f7e7b4624e67f836 Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 22 Jan 2018 15:09:34 -0500 Subject: [PATCH] [Hero 1] Remove benign dup line and rename a func --- scripts/heroes/1.gd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/heroes/1.gd b/scripts/heroes/1.gd index 27af723..1d30d9a 100644 --- a/scripts/heroes/1.gd +++ b/scripts/heroes/1.gd @@ -21,7 +21,7 @@ func _process(delta): is_placing_wall = true if Input.is_action_just_pressed("hero_1_confirm_wall"): finalize_wall(placing_wall_node) - rpc("place_wall", placing_wall_node.get_transform()) + rpc("slave_place_wall", placing_wall_node.get_transform()) placing_wall_node = null is_placing_wall = false @@ -35,10 +35,9 @@ func _process(delta): var up = -aim[2] # Wall should be horizontal to my view placing_wall_node.look_at(towards, up) -slave func place_wall(tf): +slave func slave_place_wall(tf): var wall = add_wall() finalize_wall(wall, tf) - check_wall_count() # Creates wall, adds to world, and returns the node func add_wall():