From: <mbj...@us...> - 2010-03-08 03:18:19
|
Revision: 4956 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=4956&view=rev Author: mbjornstk Date: 2010-03-08 03:18:11 +0000 (Mon, 08 Mar 2010) Log Message: ----------- Add zipper cheat, F7 key. Useful to test high speed behaviour. Modified Paths: -------------- main/trunk/src/input/input_manager.cpp Modified: main/trunk/src/input/input_manager.cpp =================================================================== --- main/trunk/src/input/input_manager.cpp 2010-03-07 22:54:53 UTC (rev 4955) +++ main/trunk/src/input/input_manager.cpp 2010-03-08 03:18:11 UTC (rev 4956) @@ -153,6 +153,12 @@ kart->setPowerup(POWERUP_PARACHUTE, 10000); } break; + case KEY_F7: + if (race_manager->getNumPlayers() == 1) + { + Kart* kart = world->getLocalPlayerKart(0); + kart->setPowerup(POWERUP_ZIPPER, 10000); + } #endif case KEY_F12: UserConfigParams::m_display_fps = !UserConfigParams::m_display_fps; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |