Removed 2nd debug key for bubble gum, added debug key for bowling ball.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4945 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-03-06 00:42:18 +00:00
parent 7549252410
commit ac85c71e31

View File

@ -105,7 +105,6 @@ void InputManager::handleStaticAction(int key, int value)
{ {
Kart* kart = world->getLocalPlayerKart(0); Kart* kart = world->getLocalPlayerKart(0);
kart->setPowerup(POWERUP_BUBBLEGUM, 10000); kart->setPowerup(POWERUP_BUBBLEGUM, 10000);
projectile_manager->newExplosion(Vec3(0, 8, 0.5));
} }
break; break;
case KEY_F2: case KEY_F2:
@ -129,19 +128,19 @@ void InputManager::handleStaticAction(int key, int value)
kart->setPowerup(POWERUP_SWITCH, 10000); kart->setPowerup(POWERUP_SWITCH, 10000);
} }
break; break;
case KEY_F5:
if (race_manager->getNumPlayers() ==1 )
{
Kart* kart = world->getLocalPlayerKart(0);
kart->setPowerup(POWERUP_BOWLING, 10000);
}
break;
case KEY_F11: case KEY_F11:
if(value && control_is_pressed) if(value && control_is_pressed)
{ {
world->getPhysics()->nextDebugMode(); world->getPhysics()->nextDebugMode();
} }
break; break;
case KEY_F5:
if (race_manager->getNumPlayers() ==1 )
{
Kart* kart = world->getLocalPlayerKart(0);
kart->setPowerup(POWERUP_BUBBLEGUM, 10000);
}
break;
#endif #endif
case KEY_F12: case KEY_F12:
UserConfigParams::m_display_fps = !UserConfigParams::m_display_fps; UserConfigParams::m_display_fps = !UserConfigParams::m_display_fps;