Enable artist debug mode tricks in multiplayer too
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9131 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -115,8 +115,7 @@ void InputManager::handleStaticAction(int key, int value)
|
||||
break;
|
||||
}
|
||||
case KEY_F1:
|
||||
if (UserConfigParams::m_artist_debug_mode && world &&
|
||||
race_manager->getNumPlayers() ==1 )
|
||||
if (UserConfigParams::m_artist_debug_mode && world)
|
||||
{
|
||||
Kart* kart = world->getLocalPlayerKart(0);
|
||||
kart->setPowerup(PowerupManager::POWERUP_BUBBLEGUM, 10000);
|
||||
@@ -128,48 +127,42 @@ void InputManager::handleStaticAction(int key, int value)
|
||||
}
|
||||
break;
|
||||
case KEY_F2:
|
||||
if (UserConfigParams::m_artist_debug_mode && world &&
|
||||
race_manager->getNumPlayers() ==1 )
|
||||
if (UserConfigParams::m_artist_debug_mode && world)
|
||||
{
|
||||
Kart* kart = world->getLocalPlayerKart(0);
|
||||
kart->setPowerup(PowerupManager::POWERUP_PLUNGER, 10000);
|
||||
}
|
||||
break;
|
||||
case KEY_F3:
|
||||
if (UserConfigParams::m_artist_debug_mode && world &&
|
||||
race_manager->getNumPlayers() ==1 )
|
||||
if (UserConfigParams::m_artist_debug_mode && world)
|
||||
{
|
||||
Kart* kart = world->getLocalPlayerKart(0);
|
||||
kart->setPowerup(PowerupManager::POWERUP_CAKE, 10000);
|
||||
}
|
||||
break;
|
||||
case KEY_F4:
|
||||
if (UserConfigParams::m_artist_debug_mode && world &&
|
||||
race_manager->getNumPlayers() ==1 )
|
||||
if (UserConfigParams::m_artist_debug_mode && world)
|
||||
{
|
||||
Kart* kart = world->getLocalPlayerKart(0);
|
||||
kart->setPowerup(PowerupManager::POWERUP_SWITCH, 10000);
|
||||
}
|
||||
break;
|
||||
case KEY_F5:
|
||||
if (UserConfigParams::m_artist_debug_mode && world &&
|
||||
race_manager->getNumPlayers() ==1 )
|
||||
if (UserConfigParams::m_artist_debug_mode && world)
|
||||
{
|
||||
Kart* kart = world->getLocalPlayerKart(0);
|
||||
kart->setPowerup(PowerupManager::POWERUP_BOWLING, 10000);
|
||||
}
|
||||
break;
|
||||
case KEY_F6:
|
||||
if (UserConfigParams::m_artist_debug_mode && world &&
|
||||
race_manager->getNumPlayers() == 1)
|
||||
if (UserConfigParams::m_artist_debug_mode && world)
|
||||
{
|
||||
Kart* kart = world->getLocalPlayerKart(0);
|
||||
kart->setPowerup(PowerupManager::POWERUP_PARACHUTE, 10000);
|
||||
}
|
||||
break;
|
||||
case KEY_F7:
|
||||
if (UserConfigParams::m_artist_debug_mode && world &&
|
||||
race_manager->getNumPlayers() == 1)
|
||||
if (UserConfigParams::m_artist_debug_mode && world)
|
||||
{
|
||||
Kart* kart = world->getLocalPlayerKart(0);
|
||||
kart->setPowerup(PowerupManager::POWERUP_ZIPPER, 10000);
|
||||
@@ -200,8 +193,7 @@ void InputManager::handleStaticAction(int key, int value)
|
||||
break;
|
||||
|
||||
case KEY_F9:
|
||||
if (UserConfigParams::m_artist_debug_mode && world &&
|
||||
race_manager->getNumPlayers() == 1)
|
||||
if (UserConfigParams::m_artist_debug_mode && world)
|
||||
{
|
||||
Kart* kart = world->getLocalPlayerKart(0);
|
||||
kart->setPowerup(PowerupManager::POWERUP_SWATTER, 10000);
|
||||
|
||||
Reference in New Issue
Block a user