Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't throw exceptions on :droid, :idle
This not only simplifies the playsingle/mp_controller code, it also fixes a bug that actions were aborted when issueing a :droid during an ai turn causing corrupt replays or worse. We still use restart_turn_exception to escape insode the ai code but not during the action. Instead we now check player_type_changed_ after every action, just like we do for ai_end_turn_exception and catch it inside ai::manager::play_turn so that the playsingle/mp_controller code doesn't have to handle this exception anymore.
- Loading branch information
Showing
11 changed files
with
71 additions
and
138 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
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
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
Oops, something went wrong.