From 32ed6f400a5fbb2de8263e9e1536726a1bd3925f Mon Sep 17 00:00:00 2001 From: hikerstk Date: Tue, 2 Mar 2010 05:15:33 +0000 Subject: [PATCH] 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 --- src/physics/physics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/physics/physics.cpp b/src/physics/physics.cpp index 7443517f8..8d2b02ce7 100644 --- a/src/physics/physics.cpp +++ b/src/physics/physics.cpp @@ -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;