mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Merge pull request #6 from Azaezel/IntegerParsing
on balance we'll want to round instead of truncate
This commit is contained in:
commit
47f68d9371
1 changed files with 1 additions and 1 deletions
|
|
@ -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>)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue