asking now whether online highscore mode should be used

This commit is contained in:
2011-04-30 16:41:51 +02:00
parent 55b7c383af
commit 980f55955d
5 changed files with 69 additions and 4 deletions
+2 -1
View File
@@ -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;