Removed unnecessary warning; made debug mesh less transparent.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11702 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-10-17 21:48:42 +00:00
parent ecd746d670
commit 4a8a40c7e8

View File

@ -533,7 +533,7 @@ void QuadGraph::createDebugMesh()
/*enable_transparency*/true); /*enable_transparency*/true);
// Now colour the quads red/blue/red ... // Now colour the quads red/blue/red ...
video::SColor c( 32, 255, 0, 0); video::SColor c( 128, 255, 0, 0);
video::S3DVertex *v = (video::S3DVertex*)m_mesh_buffer->getVertices(); video::S3DVertex *v = (video::S3DVertex*)m_mesh_buffer->getVertices();
for(unsigned int i=0; i<m_mesh_buffer->getVertexCount(); i++) for(unsigned int i=0; i<m_mesh_buffer->getVertexCount(); i++)
{ {
@ -901,8 +901,8 @@ int QuadGraph::findOutOfRoadSector(const Vec3& xyz,
int min_sector = UNKNOWN_SECTOR; int min_sector = UNKNOWN_SECTOR;
float min_dist_2 = 999999.0f*999999.0f; float min_dist_2 = 999999.0f*999999.0f;
// It is (at least theoretical) possible that a kart is falling and in // If a kart is falling and in between (or too far below)
// between (or too far below) a driveline point and so it doesn't fulfill // a driveline point it might not fulfill
// the height condition. So we run the test twice: first with height // the height condition. So we run the test twice: first with height
// condition, then again without the height condition - just to make sure // condition, then again without the height condition - just to make sure
// it always comes back with some kind of quad. // it always comes back with some kind of quad.
@ -939,10 +939,6 @@ int QuadGraph::findOutOfRoadSector(const Vec3& xyz,
// Leave in phase 0 if any sector was found. // Leave in phase 0 if any sector was found.
if(min_sector!=UNKNOWN_SECTOR) if(min_sector!=UNKNOWN_SECTOR)
return min_sector; return min_sector;
#ifdef DEBUG
printf("findOutOfRoadSector: can't find sector with height for "
"%f %f %f\n", xyz.getX(), xyz.getY(), xyz.getZ());
#endif
} // phase } // phase
if(min_sector==UNKNOWN_SECTOR ) if(min_sector==UNKNOWN_SECTOR )