on balance we'll want to round instead of truncate

This commit is contained in:
AzaezelX 2025-04-08 16:09:54 -05:00
parent f30ff6734e
commit b886cbb527

View file

@ -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>)
{ {