Better error checking: refuse to continue when no drivelines are found but we're playing with AIs, we can only handle lack of drivelines when there is 1 kart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8955 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -407,6 +407,11 @@ void Track::loadQuadGraph(unsigned int mode_id)
|
||||
{
|
||||
fprintf(stderr, "[Track] WARNING: No graph nodes defined for track '%s'\n",
|
||||
m_filename.c_str());
|
||||
if (race_manager->getNumberOfKarts() > 1)
|
||||
{
|
||||
fprintf(stderr, "[Track] FATAL: I can handle the lack of driveline in single kart mode, but not with AIs\n");
|
||||
exit(-1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user