1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2024-11-15 05:25:57 +00:00

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.
This commit is contained in:
tommy-l-ngo 2021-11-07 00:06:16 -05:00
parent 3f1cdc9081
commit e080b4742f

View File

@ -101,6 +101,8 @@ func _input(event):
position = event.position; position = event.position;
if event.is_action_pressed("ui_rotate"): if event.is_action_pressed("ui_rotate"):
if held:
return
if checkOriginalPos(): if checkOriginalPos():
return return
else: else: