mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2025-02-04 12:28:35 +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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user