Skip to content

Commit b0d7ad9

Browse files
authored
Fix compilation warnings
Changed double constant values to float constant values (removes compilation warnings).
1 parent 4136c03 commit b0d7ad9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

version/Core/Public/Ark/ArkApiUtils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,8 @@ namespace ArkApi
762762
float lon_div = 100.f / lon_scale;
763763
float lon = (lon_div * actor_position.X + lon_div * abs(lon_origin)) / 1000.f;
764764

765-
coords.x = std::floor(lon * 10.) / 10.;
766-
coords.y = std::floor(lat * 10.) / 10.;
765+
coords.x = std::floor(lon * 10.0f) / 10.0f;
766+
coords.y = std::floor(lat * 10.0f) / 10.0f;
767767

768768
return coords;
769769
}

0 commit comments

Comments
 (0)