Skip to content

Commit

Permalink
Merge pull request #100 from fuzzyTew/mapswitch-ai-stop
Browse files Browse the repository at this point in the history
stop ai when map is unloaded fixes #97
  • Loading branch information
czlowiekimadlo authored Jan 10, 2019
2 parents 8746c25 + c7e887b commit 27e1e03
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 27e1e03

Please sign in to comment.