- attempt to ensure color picking ALWAYS has unique colors

- better handling of scenario's that are missing techtrees
This commit is contained in:
Mark Vejvoda
2013-11-24 04:44:12 +00:00
parent 8414077d7a
commit ceb799a66e
6 changed files with 67 additions and 0 deletions

View File

@@ -286,9 +286,12 @@ private:
static unsigned char nextColorID[COLOR_COMPONENTS];
static vector<vector<unsigned char> > nextColorIDReuseList;
static map<string,bool> usedColorIDList;
static Mutex mutexNextColorID;
static auto_ptr<PixelBufferWrapper> pbo;
void assign_color();
};
}}//end namespace