Added (currently commented out) debug feature that F1 will
force the first kart to be rescued (which can be useful to find places where the AI gets into a: rescue, drive, crash, rescue-to-same-place,... loop). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6476 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
a359b169a4
commit
6c2eb260f0
@ -112,6 +112,11 @@ void InputManager::handleStaticAction(int key, int value)
|
||||
{
|
||||
Kart* kart = world->getLocalPlayerKart(0);
|
||||
kart->setPowerup(PowerupManager::POWERUP_BUBBLEGUM, 10000);
|
||||
#ifdef FORCE_RESCUE_ON_FIRST_KART
|
||||
// Can be useful for debugging places where the AI gets into
|
||||
// a rescue loop: rescue, drive, crash, rescue to same place
|
||||
world->getKart(0)->forceRescue();
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case KEY_F2:
|
||||
|
Loading…
Reference in New Issue
Block a user