no longer show resource info in debug stats in game

This commit is contained in:
Mark Vejvoda 2011-10-26 05:10:36 +00:00
parent c045f06f44
commit 33549e2b0b

View File

@ -2863,10 +2863,15 @@ void Game::render2d(){
}
factionInfo += " [" + formatString(this->gameSettings.getFactionTypeName(i)) +
" team: " + intToStr(this->gameSettings.getTeam(i)) + "] res: ";
for(int j = 0; j < world.getTechTree()->getResourceTypeCount(); ++j) {
factionInfo += intToStr(world.getFaction(i)->getResource(j)->getAmount());
factionInfo += " ";
" team: " + intToStr(this->gameSettings.getTeam(i)) + "]";
bool showResourceDebugInfo = false;
if(showResourceDebugInfo == true) {
factionInfo +=" res: ";
for(int j = 0; j < world.getTechTree()->getResourceTypeCount(); ++j) {
factionInfo += intToStr(world.getFaction(i)->getResource(j)->getAmount());
factionInfo += " ";
}
}
factionDebugInfo[i] = factionInfo;