When pressing ctrl-F8 in artists debug mode only make player karts

invisible. This allows to take screenshots with AI (and if you don't
want AI, just race without AI).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12588 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2013-03-27 21:11:12 +00:00
parent b967e5a492
commit 9dfb6c4ccb

View File

@@ -225,8 +225,9 @@ void InputManager::handleStaticAction(int key, int value)
const int count = World::getWorld()->getNumKarts();
for (int n=0; n<count; n++)
{
World::getWorld()->getKart(n)->getNode()
->setVisible(gui->m_enabled);
if(World::getWorld()->getKart(n)->getController()->isPlayerController())
World::getWorld()->getKart(n)->getNode()
->setVisible(gui->m_enabled);
}
}
else