Fixed bug with config file when switching resolution
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3639 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
516fb47751
commit
d2cd16910a
@ -98,6 +98,7 @@ public:
|
||||
|
||||
operator int() const { return value; }
|
||||
int& operator=(const int& v) { value = v; return value; }
|
||||
int& operator=(const IntUserConfigParam& v) { value = (int)v; return value; }
|
||||
};
|
||||
|
||||
class StringUserConfigParam : public UserConfigParam
|
||||
@ -116,6 +117,8 @@ public:
|
||||
|
||||
operator std::string() const { return value; }
|
||||
std::string& operator=(const std::string& v) { value = v; return value; }
|
||||
std::string& operator=(const StringUserConfigParam& v) { value = (std::string)v; return value; }
|
||||
|
||||
const char* c_str() const { return value.c_str(); }
|
||||
};
|
||||
|
||||
@ -135,6 +138,7 @@ public:
|
||||
|
||||
operator bool() const { return value; }
|
||||
bool& operator=(const bool& v) { value = v; return value; }
|
||||
bool& operator=(const BoolUserConfigParam& v) { value = (bool)v; return value; }
|
||||
};
|
||||
|
||||
class FloatUserConfigParam : public UserConfigParam
|
||||
@ -152,6 +156,7 @@ public:
|
||||
|
||||
operator float() const { return value; }
|
||||
float& operator=(const float& v) { value = v; return value; }
|
||||
float& operator=(const FloatUserConfigParam& v) { value = (float)v; return value; }
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user