If no valid start position is found, automatically enter flying mode
(in debug compilations). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6566 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
6f6fafe725
commit
1987c155f0
@ -348,7 +348,13 @@ void World::resetAllKarts()
|
||||
{
|
||||
fprintf(stderr, "ERROR: no valid starting position for kart %d on track %s.\n",
|
||||
(int)(i-m_karts.begin()), m_track->getIdent().c_str());
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "Activating fly mode.\n");
|
||||
(*i)->flyUp();
|
||||
continue;
|
||||
#else
|
||||
exit(-1);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@ -385,8 +391,14 @@ void World::resetAllKarts()
|
||||
if(!material)
|
||||
{
|
||||
fprintf(stderr, "ERROR: no valid starting position for kart %d on track %s.\n",
|
||||
(int)(i-m_karts.begin()), m_track->getIdent().c_str());
|
||||
(int)(i-m_karts.begin()), m_track->getIdent().c_str());
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "Activating fly mode.\n");
|
||||
(*i)->flyUp();
|
||||
continue;
|
||||
#else
|
||||
exit(-1);
|
||||
#endif
|
||||
}
|
||||
all_finished=false;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user