1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
vcmi/AI
Ivan Savenko 9bfe000724 Added semi-workaround method for network thread shutdown:
Currently closing game while network thread is waiting for something is
very bug-prone, since network thread may resume during shutdown and
access partially destroyed client state.

Now if exit has been requested, the very first step would be semi-
graceful shutdown of network thread (via exception throwing). This may
in theory skip some cleanup in non-RAII code, but since game is shutting
down this does not matters much.

This logic applies to:
- shutting down while network thread is waiting for dialogs
- shuttind down while network thread waiting for animations in combat
2024-05-18 11:04:10 +00:00
..
BattleAI BattleAI: fix bypassing 2-hex moat 2024-04-20 15:28:57 +03:00
EmptyAI Add handling for yes/no dialogs that can be safely skipped by player 2024-04-17 01:08:27 +02:00
FuzzyLite@7aee562d6c vcmi: new commits in submodules 2023-04-27 20:59:55 +03:00
Nullkiller Added semi-workaround method for network thread shutdown: 2024-05-18 11:04:10 +00:00
StupidAI Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00
VCAI Added semi-workaround method for network thread shutdown: 2024-05-18 11:04:10 +00:00
CMakeLists.txt enable StupidAI and EmptyAI for static AI 2023-03-02 12:09:49 +03:00
FuzzyLite.cbp [C::B] Switch to MinGW 7.3 2019-02-19 14:59:10 +03:00
GeniusAI.brain convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00