Skip to content

Commit

Permalink
end the game when the map is unloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzyTew committed Jan 2, 2019
1 parent d68364f commit f07ccd6
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
action_controller.end_game(-1)
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 f07ccd6

Please sign in to comment.