Fixed typos in previous commit, fixed incorrect XML syntax

in sfx.xml file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5015 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-03-17 04:56:57 +00:00
parent 9e9cac587f
commit 6c80b9c8c4

View File

@ -113,7 +113,7 @@ void SFXManager::loadSfx()
{
std::string sfx_config_name = file_manager->getSFXFile("sfx.xml");
XMLNode* root = file_manager->createXMLTree(sfx_config_name);
if (!root)
if (!root || root->getName()!="sfx-config")
{
std::cerr << "Could not read sounf effects XML file " << sfx_config_name.c_str() << std::endl;
}
@ -355,7 +355,7 @@ void SFXManager::loadSingleSfx(const XMLNode* node)
* \param id Identifier of the sound effect to create.
*/
SFXBase* SFXManager::createSoundSource(const SFXBufferInfo& info,
const bool add_toS_FX_list)
const bool add_to_SFX_list)
{
bool positional = false;