- updated game loading info to show # skills loading

This commit is contained in:
Mark Vejvoda 2012-10-04 06:01:47 +00:00
parent 70cda77f74
commit eecbed5090
1 changed files with 7 additions and 0 deletions

View File

@ -599,6 +599,10 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree, const
const XmlNode *skillsNode= unitNode->getChild("skills");
skillTypes.resize(skillsNode->getChildCount());
sprintf(szBuf,Lang::getInstance().get("LogScreenGameLoadingUnitTypeSkills","",true).c_str(),formatString(name).c_str(),skillTypes.size());
Logger::getInstance().add(szBuf, true);
for(int i = 0; i < skillTypes.size(); ++i) {
const XmlNode *sn= skillsNode->getChild("skill", i);
const XmlNode *typeNode= sn->getChild("type");
@ -607,6 +611,9 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree, const
skillType->load(sn, attackBoostsNode, dir, techTree, factionType, loadedFileList,sourceXMLFile);
skillTypes[i]= skillType;
//sprintf(szBuf,Lang::getInstance().get("LogScreenGameLoadingUnitTypeSkills","",true).c_str(),formatString(name).c_str(),i+1,skillTypes.size());
//Logger::getInstance().add(szBuf, true);
}
//commands