mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
NKAI: improve boat handling by object graph, a set of fixes
This commit is contained in:
@ -396,7 +396,11 @@ void ApplyClientNetPackVisitor::visitPlayerEndsGame(PlayerEndsGame & pack)
|
||||
|
||||
// In auto testing pack.mode we always close client if red pack.player won or lose
|
||||
if(!settings["session"]["testmap"].isNull() && pack.player == PlayerColor(0))
|
||||
{
|
||||
logAi->info("Red player %s. Ending game.", pack.victoryLossCheckResult.victory() ? "won" : "lost");
|
||||
|
||||
handleQuit(settings["session"]["spectate"].Bool()); // if spectator is active ask to close client or not
|
||||
}
|
||||
}
|
||||
|
||||
void ApplyClientNetPackVisitor::visitPlayerReinitInterface(PlayerReinitInterface & pack)
|
||||
|
Reference in New Issue
Block a user