1.1 --- a/core/MenuManager.cpp Fri Aug 03 11:08:12 2007 +0000
1.2 +++ b/core/MenuManager.cpp Fri Aug 03 11:14:56 2007 +0000
1.3 @@ -891,3 +891,19 @@
1.4
1.5 return sound;
1.6 }
1.7 +
1.8 +void MenuManager::OnSourceModLevelChange(const char *mapName)
1.9 +{
1.10 + if (m_SelectSound.size() > 0)
1.11 + {
1.12 + enginesound->PrecacheSound(m_SelectSound.c_str(), true);
1.13 + }
1.14 + if (m_ExitBackSound.size() > 0)
1.15 + {
1.16 + enginesound->PrecacheSound(m_ExitBackSound.c_str(), true);
1.17 + }
1.18 + if (m_ExitSound.size() > 0)
1.19 + {
1.20 + enginesound->PrecacheSound(m_ExitSound.c_str(), true);
1.21 + }
1.22 +}