Bugfix: Enable AI karts to be rescued after taking an invalid shortcut.
This is needed now that skidding has been implemented because AI karts are more likely to crash off the track and onto other parts of the track. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1717 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
8dfae1ef90
commit
9656c70bbf
@ -635,9 +635,10 @@ void Kart::update(float dt)
|
||||
// Check if the kart is taking a shortcut (if it's not already doing one):
|
||||
if(!m_rescue && world->m_track->isShortcut(prev_sector, m_track_sector))
|
||||
{
|
||||
if(isPlayerKart())
|
||||
forceRescue(/*is rescue*/ true); // bring karts back to where they left the track.
|
||||
if(isPlayerKart())
|
||||
{
|
||||
forceRescue(/*is rescue*/ true); // bring karts back to where they left the track.
|
||||
|
||||
RaceGUI* m=(RaceGUI*)menu_manager->getRaceMenu();
|
||||
// Can happen if the option menu is called
|
||||
if(m)
|
||||
|
Loading…
x
Reference in New Issue
Block a user