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:
parent
2813e3d75c
commit
32ed6f400a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user