asking now whether online highscore mode should be used
This commit is contained in:
+2
-1
@@ -126,7 +126,7 @@ Variable* GetVariable (const std::string &name) {
|
||||
return VariablesInstance->GetVariable (name);
|
||||
}
|
||||
|
||||
bool SetVariableValue (const std::string &name, const std::string value) {
|
||||
bool SetVariableValue (const std::string &name, const std::string &value) {
|
||||
if (! VariablesInstance ) {
|
||||
LogError ("Unable to set Variable '%s': Variables System not initialized!", name.c_str());
|
||||
return false;
|
||||
@@ -138,6 +138,7 @@ bool SetVariableValue (const std::string &name, const std::string value) {
|
||||
}
|
||||
|
||||
var->SetStringValue (value);
|
||||
var->SetBoolValueFromString (value);
|
||||
var->SetFloatValue (atof (value.c_str()));
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user