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:
parent
46ed8ff33e
commit
afdd182810
@ -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]);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user