Better error handling + somewhat fix rain in lighthouse (for some reason it only works in multiplayer mode?)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7733 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
e55ceae95e
commit
0b1702502f
@ -909,12 +909,19 @@ void Track::loadTrackModel(World* parent, unsigned int mode_id)
|
||||
}
|
||||
else if (weather_type.size() > 0)
|
||||
{
|
||||
m_weather_type = WEATHER_RAIN;
|
||||
if (weather_type == "rain")
|
||||
{
|
||||
m_weather_type = WEATHER_RAIN;
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "[Track] ERROR: Unknown weather type : '%s'\n", weather_type.c_str());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr,
|
||||
"Warning: bas weather node found - ignored.\n");
|
||||
"[Track] ERROR: Warning: bad weather node found - ignored.\n");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user