Only dislay name if the debug camera is not used (otherwise

the name will make the karts impossible to see).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11404 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-07-19 06:55:32 +00:00
parent 790f1b2bde
commit e58377b1ca

View File

@ -75,7 +75,7 @@ void AIBaseController::reset()
void AIBaseController::setControllerName(const std::string &name)
{
#ifdef DEBUG
if(m_ai_debug)
if(m_ai_debug && !UserConfigParams::m_camera_debug)
m_kart->setOnScreenText(core::stringw(name.c_str()).c_str());
#endif
Controller::setControllerName(name);