[wesnoth-commits] [wesnoth/wesnoth] d256a7: Play_controller: register as AI observer in reset_...
GitHub
noreply at github.com
Fri Feb 23 06:16:00 UTC 2018
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: d256a7b6098a67ab477b3f5bf172674cae4e4013
https://github.com/wesnoth/wesnoth/commit/d256a7b6098a67ab477b3f5bf172674cae4e4013
Author: Jyrki Vesterinen <sandgtx at gmail.com>
Date: 2018-02-23 (Fri, 23 Feb 2018)
Changed paths:
M src/play_controller.cpp
M src/playsingle_controller.cpp
Log Message:
-----------
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.
More information about the Commits
mailing list