1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

Do not display warning if player already lost

This commit is contained in:
Dydzio 2019-05-28 22:34:55 +02:00 committed by GitHub
parent 54bbf2abb3
commit f49bd3f18b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;