mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Better handling of AI shutdown
This commit is contained in:
@@ -884,7 +884,15 @@ void AIGateway::makeTurn()
|
||||
}
|
||||
#endif
|
||||
|
||||
endTurn();
|
||||
try
|
||||
{
|
||||
endTurn();
|
||||
}
|
||||
catch (const TerminationRequestedException & e)
|
||||
{
|
||||
logAi->debug("Making turn thread has been interrupted. We'll end without calling endTurn.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void AIGateway::performObjectInteraction(const CGObjectInstance * obj, HeroPtr h)
|
||||
|
||||
Reference in New Issue
Block a user