From f49bd3f18b0a371fa1960f69e2f0a1a5bc4147e7 Mon Sep 17 00:00:00 2001 From: Dydzio Date: Tue, 28 May 2019 22:34:55 +0200 Subject: [PATCH] Do not display warning if player already lost --- server/CGameHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 13a5feca8..ac1b7923f 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -2390,7 +2390,7 @@ void CGameHandler::setOwner(const CGObjectInstance * obj, PlayerColor owner) if (oldOwner < PlayerColor::PLAYER_LIMIT) //old owner is real player { - if (getPlayer(oldOwner)->towns.empty()) //previous player lost last last town + if (getPlayer(oldOwner)->towns.empty() && getPlayer(oldOwner)->status != EPlayerStatus::LOSER) //previous player lost last last town { InfoWindow iw; iw.player = oldOwner;