Skip to content

Commit

Permalink
stop ai when map is unloaded fixes #97
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzyTew committed Jan 2, 2019
1 parent d68364f commit c7e887b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/game_logic.gd
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ func unload_map():
return

is_map_loaded = false
self.bag.perform.stop_ai_timer()
self.bag.storyteller.clear_stories()
if action_controller.active_indicator.is_inside_tree():
action_controller.active_indicator.get_parent().remove_child(action_controller.active_indicator)
Expand Down

0 comments on commit c7e887b

Please sign in to comment.