Merge pull request #6 from Azaezel/IntegerParsing

on balance we'll want to round instead of truncate
This commit is contained in:
marauder2k7 2025-04-08 22:15:19 +01:00 committed by GitHub
commit 47f68d9371
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -174,7 +174,7 @@ namespace PropertyInfo
{
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>)
{