Commit c32eb9fc authored by hybrid's avatar hybrid

Fix redundant expression and make one variable const.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3648 dfc29bdd-3216-0410-991c-e03cc46cb475
parent ce755201
......@@ -536,11 +536,10 @@ namespace scene
if (!Mesh->getMeshBufferCount())
return;
TerrainData.Position = TerrainData.Position;
s32 vtxCount = Mesh->getMeshBuffer(0)->getVertexCount();
core::matrix4 rotMatrix;
rotMatrix.setRotationDegrees(TerrainData.Rotation);
const s32 vtxCount = Mesh->getMeshBuffer(0)->getVertexCount();
for (s32 i = 0; i < vtxCount; ++i)
{
RenderBuffer->getVertexBuffer()[i].Pos = Mesh->getMeshBuffer(0)->getPosition(i) * TerrainData.Scale + TerrainData.Position;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment