From 3c27d1ab130409c2e320aaaacaf0939ebef1bee9 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 30 Sep 2022 17:03:06 +0100 Subject: optimize vector config value setting --- src/config/ConfigManager.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/config/ConfigManager.hpp') 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 }; -- cgit v1.2.3