Skip to content

Commit

Permalink
Merge pull request #663 from godot-escoria/turn_to_fix
Browse files Browse the repository at this point in the history
Fix: wrong argument passed in turn_to error message
  • Loading branch information
balloonpopper authored Jan 10, 2023
2 parents 9f944e1 + 4e146ae commit da4dd67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/escoria-core/game/core-scripts/esc/commands/turn_to.gd
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ func validate(arguments: Array):
if not escoria.object_manager.has(arguments[0]):
escoria.logger.error(
self,
"[%s]: The object to turn with global id %s was not found."
"[%s]: Cannot turn \"%s\". Object not found."
% [get_command_name(), arguments[0]]
)
return false
if not escoria.object_manager.has(arguments[1]):
escoria.logger.error(
self,
"[%s]: The object to turn towards with global id %s was not found."
% [get_command_name(), arguments[0]]
"[%s]: Cannot turn \"%s\" towards \"%s\". \"%s\" was not found."
% [get_command_name(), arguments[0], arguments[1] , arguments[1]]
)
return false
return true
Expand Down

0 comments on commit da4dd67

Please sign in to comment.