Fix visual='cube' size
authorPerttu Ahola <celeron55@gmail.com>
Wed, 4 Apr 2012 15:10:10 +0000 (18:10 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Wed, 4 Apr 2012 15:10:10 +0000 (18:10 +0300)
src/content_cao.cpp

index f211ff8b9ad7d2185511f8918525a9415863449d..83a2bcfd15ac1ba124812ad2235c3a41b7f992ab 100644 (file)
@@ -781,9 +781,9 @@ public:
                        m_meshnode = smgr->addMeshSceneNode(mesh, NULL);
                        mesh->drop();
                        
-                       m_meshnode->setScale(v3f(m_prop.visual_size.X/2,
-                                       m_prop.visual_size.Y/2,
-                                       m_prop.visual_size.X/2));
+                       m_meshnode->setScale(v3f(m_prop.visual_size.X,
+                                       m_prop.visual_size.Y,
+                                       m_prop.visual_size.X));
                        u8 li = m_last_light;
                        setMeshColor(m_meshnode->getMesh(), video::SColor(255,li,li,li));
                } else if(m_prop.visual == "wielditem"){