mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Fix implicit int to float conversion warning
This commit is contained in:
parent
bb0c478954
commit
4983684fda
@ -52,7 +52,7 @@ namespace DetourNavigator
|
|||||||
|
|
||||||
inline float getTileSize(const Settings& settings)
|
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)
|
inline TilePosition getTilePosition(const Settings& settings, const osg::Vec3f& position)
|
||||||
@ -73,7 +73,7 @@ namespace DetourNavigator
|
|||||||
|
|
||||||
inline float getBorderSize(const Settings& settings)
|
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)
|
inline float getSwimLevel(const Settings& settings, const float agentHalfExtentsZ)
|
||||||
|
Loading…
Reference in New Issue
Block a user