hints while loading with language support and keycode replacement.

This commit is contained in:
Titus Tscharntke
2012-06-19 00:32:39 +00:00
parent 6d6f2c362a
commit a9049ac887
5 changed files with 54 additions and 10 deletions

View File

@@ -417,7 +417,7 @@ const string Properties::getString(const string &key, const char *defaultValueIf
}
}
const string Properties::getRandomString(const bool realrandom) const{
const string Properties::getRandomKey(const bool realrandom) const{
PropertyMap::const_iterator it;
int max=getPropertyCount();
int randomIndex=-1;
@@ -428,7 +428,7 @@ const string Properties::getRandomString(const bool realrandom) const{
RandomGen randgen;
randomIndex=randgen.randRange(0,max);
}
string s=getString(randomIndex);
string s=getKey(randomIndex);
return (s != "" ? s : "nothing found");
}