Преглед изворни кода

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

ArseniyShestakov пре 10 година
родитељ
комит
74198a537b
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      server/CGameHandler.cpp

+ 2 - 1
server/CGameHandler.cpp

@@ -1961,7 +1961,8 @@ void CGameHandler::setOwner(const CGObjectInstance * obj, PlayerColor owner)
 			{
 			{
 				InfoWindow iw;
 				InfoWindow iw;
 				iw.player = oldOwner;
 				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);
 				sendAndApply(&iw);
 			}
 			}
 		}
 		}