Revert "upright_sprite: Fix texture position for players"
authorLoïc Blot <loic.blot@unix-experience.fr>
Thu, 3 Jan 2019 11:04:51 +0000 (12:04 +0100)
committerLoïc Blot <loic.blot@unix-experience.fr>
Thu, 3 Jan 2019 11:04:51 +0000 (12:04 +0100)
This reverts commit d58801ab3204757e6c49892a05633281144f4f44.

src/content_cao.cpp

index 7f1293ac341d9ce657f56e3f786fa60efc42c5d9..994f0492acdbeba648d1f5145fe1d6f5bb67ed05 100644 (file)
@@ -835,11 +835,6 @@ void GenericCAO::addToScene(scene::ISceneManager *smgr,
                                video::S3DVertex( dx,  dy, 0, 0,0,0, c, 0,0),
                                video::S3DVertex(-dx,  dy, 0, 0,0,0, c, 1,0),
                        };
-                       if (m_is_player) {
-                               // Move minimal Y position to 0 (feet position)
-                               for (size_t i = 0; i < 4; i++)
-                                       vertices[i].Pos.Y += dy;
-                       }
                        u16 indices[] = {0,1,2,2,3,0};
                        buf->append(vertices, 4, indices, 6);
                        // Set material
@@ -859,11 +854,6 @@ void GenericCAO::addToScene(scene::ISceneManager *smgr,
                                video::S3DVertex(-dx, dy, 0, 0,0,0, c, 0,0),
                                video::S3DVertex( dx, dy, 0, 0,0,0, c, 1,0),
                        };
-                       if (m_is_player) {
-                               // Move minimal Y position to 0 (feet position)
-                               for (size_t i = 0; i < 4; i++)
-                                       vertices[i].Pos.Y += dy;
-                       }
                        u16 indices[] = {0,1,2,2,3,0};
                        buf->append(vertices, 4, indices, 6);
                        // Set material