mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2024-11-14 21:15:58 +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:
parent
3f1cdc9081
commit
e080b4742f
@ -101,6 +101,8 @@ func _input(event):
|
||||
position = event.position;
|
||||
|
||||
if event.is_action_pressed("ui_rotate"):
|
||||
if held:
|
||||
return
|
||||
if checkOriginalPos():
|
||||
return
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user