1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

CGameHandler::setOwner: fix InfoWindow text on last town loss

This commit is contained in:
ArseniyShestakov 2015-11-09 00:54:59 +03:00
parent 866a0a1fc0
commit 74198a537b

View File

@ -1961,7 +1961,8 @@ void CGameHandler::setOwner(const CGObjectInstance * obj, PlayerColor owner)
{
InfoWindow iw;
iw.player = oldOwner;
iw.text.addTxt (MetaString::GENERAL_TXT, 6); //%s, you have lost your last town. If you do not conquer another town in the next week, you will be eliminated.
iw.text.addTxt(MetaString::GENERAL_TXT, 6); //%s, you have lost your last town. If you do not conquer another town in the next week, you will be eliminated.
iw.text.addReplacement(MetaString::COLOR, oldOwner.getNum());
sendAndApply(&iw);
}
}