diff --git a/source/glest_game/game/game.cpp b/source/glest_game/game/game.cpp index 86675551..7b5e23f8 100644 --- a/source/glest_game/game/game.cpp +++ b/source/glest_game/game/game.cpp @@ -5275,7 +5275,12 @@ string Game::getDebugStats(std::map &factionDebugInfo) { str+= "ExploredCellsLookupItemCache: " + world.getExploredCellsLookupItemCacheStats()+"\n"; str+= "FowAlphaCellsLookupItemCache: " + world.getFowAlphaCellsLookupItemCacheStats()+"\n"; - str += "Selection type: "+toLower(Config::getInstance().getString("SelectionType",Config::colorPicking))+"\n"; + const string selectionType = toLower(Config::getInstance().getString("SelectionType",Config::colorPicking)); + str += "Selection type: " + toLower(selectionType) + "\n"; + + if(selectionType == Config::colorPicking) { + str += "Color picking used color list size: " + intToStr(BaseColorPickEntity::getUsedColorIDListSize()) +"\n"; + } //str+= "AllFactionsCacheStats: " + world.getAllFactionsCacheStats()+"\n"; //str+= "AttackWarningCount: " + intToStr(world.getUnitUpdater()->getAttackWarningCount()) + "\n"; diff --git a/source/shared_lib/include/graphics/model.h b/source/shared_lib/include/graphics/model.h index d4ed8047..909a492c 100644 --- a/source/shared_lib/include/graphics/model.h +++ b/source/shared_lib/include/graphics/model.h @@ -286,6 +286,8 @@ public: unsigned char * getUniqueColorID() { return &uniqueColorID[0]; } bool get_next_assign_color(unsigned char *assign_to); + static int getUsedColorIDListSize() { return (int)usedColorIDList.size(); } + private: unsigned char uniqueColorID[COLOR_COMPONENTS];