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:
parent
bb0c478954
commit
4983684fda
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user