1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 03:19:44 +00:00

Fix implicit int to float conversion warning

This commit is contained in:
elsid 2021-02-15 00:07:20 +01:00
parent bb0c478954
commit 4983684fda
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

View File

@ -52,7 +52,7 @@ namespace DetourNavigator
inline float getTileSize(const Settings& settings)
{
return settings.mTileSize * settings.mCellSize;
return static_cast<float>(settings.mTileSize) * settings.mCellSize;
}
inline TilePosition getTilePosition(const Settings& settings, const osg::Vec3f& position)
@ -73,7 +73,7 @@ namespace DetourNavigator
inline float getBorderSize(const Settings& settings)
{
return settings.mBorderSize * settings.mCellSize;
return static_cast<float>(settings.mBorderSize) * settings.mCellSize;
}
inline float getSwimLevel(const Settings& settings, const float agentHalfExtentsZ)