Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Play_controller: register as AI observer in reset_gamestate()
Now when play controller can outlive AI manager, it needs to register itself as an observer when the AI manager is recreated. While I was working with this code, I also moved the existing registration from playsingle_controller to play_controller (for consistency) and stopped using the singleton pointer to access the manager. Thanks to @gfgtdf for spotting the problem.
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters