Removed calls to physics debug draw while the menu is shown.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4904 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-03-02 05:15:33 +00:00
parent 2813e3d75c
commit 32ed6f400a

View File

@ -343,7 +343,8 @@ btScalar Physics::solveGroup(btCollisionObject** bodies, int numBodies,
/** A debug draw function to show the track and all karts. */
void Physics::draw()
{
if(!m_debug_drawer->debugEnabled()) return;
if(!m_debug_drawer->debugEnabled() ||
!World::getWorld()->isRacePhase()) return;
video::SColor color(77,179,0,0);
video::SMaterial material;