We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7324b72 commit 465b29eCopy full SHA for 465b29e
1 file changed
scenes/game_elements/characters/enemies/guard/components/guard.gd
@@ -184,7 +184,7 @@ func _process_state() -> void:
184
State.INVESTIGATING:
185
guard_movement.set_destination(last_seen_position)
186
State.RETURNING:
187
- if not breadcrumbs.is_empty():
+ if breadcrumbs:
188
var target_position: Vector2 = breadcrumbs.back()
189
guard_movement.set_destination(target_position)
190
else:
@@ -266,7 +266,7 @@ func _on_path_blocked() -> void:
266
267
state = State.RETURNING
268
269
270
breadcrumbs.pop_back()
271
272
0 commit comments