From eecbed50904d9ae316f0761af243b2187c4a1ea8 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 4 Oct 2012 06:01:47 +0000 Subject: [PATCH] - updated game loading info to show # skills loading --- source/glest_game/types/unit_type.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/glest_game/types/unit_type.cpp b/source/glest_game/types/unit_type.cpp index 89555fd5..088c2582 100644 --- a/source/glest_game/types/unit_type.cpp +++ b/source/glest_game/types/unit_type.cpp @@ -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