mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 22:20:33 +00:00
Replace C-style cast by static_cast
This commit is contained in:
parent
e4584ce5dd
commit
d3e61e4578
@ -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…
x
Reference in New Issue
Block a user