Code modernization: src/m* (part 2)
[oweals/minetest.git] / src / guiEngine.cpp
index 5f5b4bbff419702866c579b6b823c7fd5ce297a5..d8d8d3b1193cb99ac015294b23c112d13e5f0fe3 100644 (file)
@@ -313,8 +313,9 @@ GUIEngine::~GUIEngine()
 /******************************************************************************/
 void GUIEngine::cloudInit()
 {
-       m_cloud.clouds = new Clouds(m_smgr, -1, rand(), 100);
-       m_cloud.clouds->update(v2f(0, 0), video::SColor(255,200,200,255));
+       m_cloud.clouds = new Clouds(m_smgr, -1, rand());
+       m_cloud.clouds->setHeight(100.0f);
+       m_cloud.clouds->update(v3f(0, 0, 0), video::SColor(255,200,200,255));
 
        m_cloud.camera = m_smgr->addCameraSceneNode(0,
                                v3f(0,0,0), v3f(0, 60, 100));