fix: clear action manager state if background clicked
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user