mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 04:39:42 +00:00
Replace C-style cast by static_cast
This commit is contained in:
parent
e4584ce5dd
commit
d3e61e4578
1 changed files with 3 additions and 2 deletions
|
@ -266,8 +266,9 @@ namespace ESMTerrain
|
|||
height = heightData->getHeights()[col * landSize + row];
|
||||
if (alteration)
|
||||
height += getAlteredHeight(col, row);
|
||||
positions[vertIndex] = osg::Vec3f((vertX / float(numVerts - 1) - 0.5f) * size * landSizeInUnits,
|
||||
(vertY / float(numVerts - 1) - 0.5f) * size * landSizeInUnits, height);
|
||||
positions[vertIndex]
|
||||
= osg::Vec3f((vertX / static_cast<float>(numVerts - 1) - 0.5f) * size * landSizeInUnits,
|
||||
(vertY / static_cast<float>(numVerts - 1) - 0.5f) * size * landSizeInUnits, height);
|
||||
|
||||
osg::Vec3f normal(0, 0, 1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue