Browse Source

on balance we'll want to round instead of truncate

AzaezelX 6 months ago
parent
commit
b886cbb527
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/console/propertyParsing.h

+ 1 - 1
Engine/source/console/propertyParsing.h

@@ -174,7 +174,7 @@ namespace PropertyInfo
       {
       {
          if constexpr (std::is_same_v<T, int> || std::is_same_v<T, S32>)
          if constexpr (std::is_same_v<T, int> || std::is_same_v<T, S32>)
          {
          {
-            out[index++] = dAtoi(tok);
+            out[index++] = mRound(dAtof(tok));
          }
          }
          else if constexpr (std::is_same_v<T, float> || std::is_same_v<T, F32>)
          else if constexpr (std::is_same_v<T, float> || std::is_same_v<T, F32>)
          {
          {