fix: clear action manager state if background clicked
This commit is contained in:
1 parent
9569d4f30f
commit
ab591ab6ff
1 file changed
+1
-1
@@ -203,7 +203,7 @@ func click_on_bg(position: Vector2) -> void:
|
|||||||
# If we are using an inventory item reset mouse cursor and cancel action
|
# If we are using an inventory item reset mouse cursor and cancel action
|
||||||
if escoria.action_manager.action_state == ESCActionManager.ACTION_INPUT_STATE.AWAITING_TARGET_ITEM:
|
if escoria.action_manager.action_state == ESCActionManager.ACTION_INPUT_STATE.AWAITING_TARGET_ITEM:
|
||||||
Input.set_custom_mouse_cursor(null)
|
Input.set_custom_mouse_cursor(null)
|
||||||
escoria.action_manager.action_state = ESCActionManager.ACTION_INPUT_STATE.AWAITING_VERB_OR_ITEM
|
escoria.action_manager.clear_current_tool()
|
||||||
|
|
||||||
if escoria.main.current_scene.player:
|
if escoria.main.current_scene.player:
|
||||||
escoria.action_manager.do(
|
escoria.action_manager.do(
|
||||||
|
|||||||
Reference in new issue
Block a user