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:
parent
54bbf2abb3
commit
f49bd3f18b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user