upgraded or upgrading upgrades still show their info

This commit is contained in:
Titus Tscharntke 2011-01-23 23:57:46 +00:00
parent dc133351e7
commit 9faa63fd27
1 changed files with 4 additions and 5 deletions

View File

@ -652,16 +652,15 @@ void Gui::computeInfoString(int posDisplay){
}
else{
if(ct->getClass()==ccUpgrade){
string text="";
const UpgradeCommandType *uct= static_cast<const UpgradeCommandType*>(ct);
if(unit->getFaction()->getUpgradeManager()->isUpgrading(uct->getProducedUpgrade())){
display.setInfoText(lang.get("Upgrading"));
text=lang.get("Upgrading")+"\n\n";
}
else if(unit->getFaction()->getUpgradeManager()->isUpgraded(uct->getProducedUpgrade())){
display.setInfoText(lang.get("AlreadyUpgraded"));
}
else{
display.setInfoText(ct->getReqDesc());
text=lang.get("AlreadyUpgraded")+"\n\n";
}
display.setInfoText(text+ct->getReqDesc());
}
else{
display.setInfoText(ct->getReqDesc());