fix: clear action manager state if background clicked

This commit is contained in:
2023-03-10 18:48:37 +01:00
parent 9569d4f30f
commit ab591ab6ff

View File

@@ -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 escoria.action_manager.action_state == ESCActionManager.ACTION_INPUT_STATE.AWAITING_TARGET_ITEM:
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:
escoria.action_manager.do(