Fixed incorrect paths (hardcoded instead of using appropriate

file_manager functions).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4746 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-02-16 23:52:04 +00:00
parent 46ed8ff33e
commit afdd182810
2 changed files with 4 additions and 3 deletions

View File

@ -103,8 +103,8 @@ void ItemManager::loadDefaultItems()
static const std::string item_names[] = {"bonus-box", "banana",
"nitro-big", "nitro-small",
"bubblegum" };
const XMLNode *root = file_manager->createXMLTree("data/items.xml");
const std::string file_name = file_manager->getConfigFile("items.xml");
const XMLNode *root = file_manager->createXMLTree(file_name);
for(unsigned int i=Item::ITEM_FIRST; i<=Item::ITEM_LAST; i++)
{
const XMLNode *node = root->getNode(item_names[i]);

View File

@ -86,7 +86,8 @@ PowerupType PowerupManager::getPowerupType(const std::string &name)
*/
void PowerupManager::loadAllPowerups()
{
XMLNode *root = file_manager->createXMLTree("data/powerup.xml");
const std::string file_name = file_manager->getConfigFile("powerup.xml");
XMLNode *root = file_manager->createXMLTree(file_name);
for(unsigned int i=0; i<root->getNumNodes(); i++)
{
const XMLNode *node=root->getNode(i);