summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-30 17:03:06 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-30 17:03:14 +0100
commit3c27d1ab130409c2e320aaaacaf0939ebef1bee9 (patch)
treed2af05f4b16f13f8215719533650fe3fafea86d7 /src/config/ConfigManager.hpp
parent59a3c43913b0536112f3700251aea28768c6882e (diff)
optimize vector config value setting
Diffstat (limited to 'src/config/ConfigManager.hpp')
-rw-r--r--src/config/ConfigManager.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp
index cb73e102..e134b7a6 100644
--- a/src/config/ConfigManager.hpp
+++ b/src/config/ConfigManager.hpp
@@ -20,9 +20,10 @@
#define CREATEANIMCFG(name, parent) animationConfig[name] = {false, "", "", 0.f, -1, &animationConfig["global"], &animationConfig[parent]}
struct SConfigValue {
- int64_t intValue = -1;
- float floatValue = -1;
+ int64_t intValue = -INT64_MAX;
+ float floatValue = -__FLT_MAX__;
std::string strValue = "";
+ Vector2D vecValue = Vector2D(-__FLT_MAX__, -__FLT_MAX__);
bool set = false; // used for device configs
};