mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 06:31:19 +02:00
hints while loading with language support and keycode replacement.
This commit is contained in:
@@ -73,7 +73,7 @@ public:
|
||||
bool getBool(const char *key,const char *defaultValueIfNotFound=NULL) const;
|
||||
float getFloat(const char *key,const char *defaultValueIfNotFound=NULL) const;
|
||||
const string getString(const char *key,const char *defaultValueIfNotFound=NULL) const;
|
||||
const string getRandomString(const bool realrandom) const;
|
||||
const string getRandomKey(const bool realrandom) const;
|
||||
|
||||
void setInt(const string &key, int value);
|
||||
void setBool(const string &key, bool value);
|
||||
|
@@ -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");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user