From e080b4742f15383525b988a252973e2d6c7a40e8 Mon Sep 17 00:00:00 2001 From: tommy-l-ngo Date: Sun, 7 Nov 2021 00:06:16 -0500 Subject: [PATCH] Bug Fix: left click right click moves ship Made it so that you can't rotate the ships while holding. Only when placed on board can ships then be rotated. --- godot_ship/script/game/moveShip.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/godot_ship/script/game/moveShip.gd b/godot_ship/script/game/moveShip.gd index 946c3ff..b7bb2dd 100644 --- a/godot_ship/script/game/moveShip.gd +++ b/godot_ship/script/game/moveShip.gd @@ -101,6 +101,8 @@ func _input(event): position = event.position; if event.is_action_pressed("ui_rotate"): + if held: + return if checkOriginalPos(): return else: