So I've added some code dealing with autosaving , the watch window and replays. Sorry for that, but I felt like rewriting the same things over and over.
The additional changes:
- Add a multiplayer field and getter in interactive gamebase
- Make Panel::die virtual and overwrite in Window to close it and in the save dialog to unpause the game
- Do not rely on interactive player in some place (watch window, save handler)
- Prevent autosaving in replay and prevent autopausing in multiplayer.
So I've added some code dealing with autosaving , the watch window and replays. Sorry for that, but I felt like rewriting the same things over and over.
The additional changes:
- Add a multiplayer field and getter in interactive gamebase
- Make Panel::die virtual and overwrite in Window to close it and in the save dialog to unpause the game
- Do not rely on interactive player in some place (watch window, save handler)
- Prevent autosaving in replay and prevent autopausing in multiplayer.