mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 03:39:54 +02:00
"upgrade finished" message only for own faction.
This commit is contained in:
@@ -887,8 +887,10 @@ void Faction::cancelUpgrade(const UpgradeType *ut){
|
||||
|
||||
void Faction::finishUpgrade(const UpgradeType *ut){
|
||||
upgradeManager.finishUpgrade(ut);
|
||||
Console *console=world->getGame()->getConsole();
|
||||
console->addStdMessage("UpgradeFinished",": " + formatString(ut->getName(true)));
|
||||
if(world->getThisFaction()!=NULL && this->getIndex()==world->getThisFaction()->getIndex()){
|
||||
Console *console=world->getGame()->getConsole();
|
||||
console->addStdMessage("UpgradeFinished",": " + formatString(ut->getName(true)));
|
||||
}
|
||||
for(int i=0; i<getUnitCount(); ++i){
|
||||
getUnit(i)->applyUpgrade(ut);
|
||||
}
|
||||
|
Reference in New Issue
Block a user