Fixed line endings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7027 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -53,29 +53,29 @@ CheckLine::CheckLine(CheckManager *check_manager, const XMLNode &node,
|
||||
scene::IMesh *mesh = irr_driver->createQuadMesh(&material,
|
||||
/*create mesh*/true);
|
||||
scene::IMeshBuffer *buffer = mesh->getMeshBuffer(0);
|
||||
assert(buffer->getVertexType()==video::EVT_STANDARD);
|
||||
irr::video::S3DVertex* vertices
|
||||
= (video::S3DVertex*)buffer->getVertices();
|
||||
vertices[0].Pos = core::vector3df(p1.X,
|
||||
m_min_height-m_under_min_height,
|
||||
p1.Y);
|
||||
vertices[1].Pos = core::vector3df(p2.X,
|
||||
m_min_height-m_under_min_height,
|
||||
p2.Y);
|
||||
vertices[2].Pos = core::vector3df(p2.X,
|
||||
m_min_height+m_over_min_height,
|
||||
p2.Y);
|
||||
vertices[3].Pos = core::vector3df(p1.X,
|
||||
m_min_height+m_over_min_height,
|
||||
p1.Y);
|
||||
for(unsigned int i=0; i<4; i++)
|
||||
{
|
||||
vertices[i].Color = m_active_at_reset
|
||||
? video::SColor(0, 255, 0, 0)
|
||||
: video::SColor(0, 128, 128, 128);
|
||||
}
|
||||
buffer->recalculateBoundingBox();
|
||||
mesh->setBoundingBox(buffer->getBoundingBox());
|
||||
assert(buffer->getVertexType()==video::EVT_STANDARD);
|
||||
irr::video::S3DVertex* vertices
|
||||
= (video::S3DVertex*)buffer->getVertices();
|
||||
vertices[0].Pos = core::vector3df(p1.X,
|
||||
m_min_height-m_under_min_height,
|
||||
p1.Y);
|
||||
vertices[1].Pos = core::vector3df(p2.X,
|
||||
m_min_height-m_under_min_height,
|
||||
p2.Y);
|
||||
vertices[2].Pos = core::vector3df(p2.X,
|
||||
m_min_height+m_over_min_height,
|
||||
p2.Y);
|
||||
vertices[3].Pos = core::vector3df(p1.X,
|
||||
m_min_height+m_over_min_height,
|
||||
p1.Y);
|
||||
for(unsigned int i=0; i<4; i++)
|
||||
{
|
||||
vertices[i].Color = m_active_at_reset
|
||||
? video::SColor(0, 255, 0, 0)
|
||||
: video::SColor(0, 128, 128, 128);
|
||||
}
|
||||
buffer->recalculateBoundingBox();
|
||||
mesh->setBoundingBox(buffer->getBoundingBox());
|
||||
m_debug_node = irr_driver->addMesh(mesh);
|
||||
mesh->drop();
|
||||
}
|
||||
@@ -110,7 +110,7 @@ void CheckLine::changeDebugColor(bool is_active)
|
||||
|
||||
scene::IMesh *mesh = m_debug_node->getMesh();
|
||||
scene::IMeshBuffer *buffer = mesh->getMeshBuffer(0);
|
||||
irr::video::S3DVertex* vertices
|
||||
irr::video::S3DVertex* vertices
|
||||
= (video::S3DVertex*)buffer->getVertices();
|
||||
for(unsigned int i=0; i<4; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user