From d4bdd42be6d203d5cd8d86feec8823565490dd05 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 3 Feb 2018 17:28:10 -0500 Subject: [PATCH] Fix hero switch switching the wrong clients I love git bisect! The problem was due to me accidentally deleting a crucial condition `is_network_master` when checking for hero_switch input. --- scripts/player.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/player.gd b/scripts/player.gd index a5004a2..a4a0c9f 100644 --- a/scripts/player.gd +++ b/scripts/player.gd @@ -57,6 +57,7 @@ func spawn(): set_linear_velocity(Vector3()) func _input(event): + if is_network_master(): if Input.is_action_just_pressed("switch_hero"): switch_hero_interface() # Quit the game: