Merge branch 'master' of https://github.com/konstin/stk-code into konstin-master
This commit is contained in:
commit
03b1994041
@ -560,9 +560,17 @@ void KartProperties::getAllData(const XMLNode * root)
|
||||
else if (s == "small") m_engine_sfx_type = "engine_small";
|
||||
else
|
||||
{
|
||||
Log::warn("[KartProperties]", "Kart '%s' has invalid engine '%s'.",
|
||||
m_name.c_str(), s.c_str());
|
||||
m_engine_sfx_type = "engine_small";
|
||||
if (sfx_manager->soundExist(s))
|
||||
{
|
||||
m_engine_sfx_type = s;
|
||||
}
|
||||
else
|
||||
{
|
||||
Log::error("[KartProperties]",
|
||||
"Kart '%s' has an invalid engine '%s'.",
|
||||
m_name.c_str(), s.c_str());
|
||||
m_engine_sfx_type = "engine_small";
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef WILL_BE_ENABLED_ONCE_DONE_PROPERLY
|
||||
|
Loading…
Reference in New Issue
Block a user