diff --git a/data/config.xml b/data/config.xml index 9b692df..81c106d 100644 --- a/data/config.xml +++ b/data/config.xml @@ -21,7 +21,8 @@ data/levels/ -data/levels/Level1.xml +data/levels/ +Level1.xml diff --git a/game/loader.cc b/game/loader.cc index 9c1c921..df0f17b 100644 --- a/game/loader.cc +++ b/game/loader.cc @@ -27,7 +27,8 @@ void Loader::loadConfig(Application* application) { application->setTexturePath(texturePath); application->setScriptPath(queryString(config, "scriptPath")); application->setHeightmapPath(queryString(config, "heightmapPath")); - application->setLevelXmlPath(queryString(config, "levelXmlPath")); + std::string levelXmlPath = queryString(config, "levelXmlPath"); + application->setLevelXmlPath(levelXmlPath + queryString(config, "levelXML")); XMLElement* loadingScreen = config->FirstChildElement("loadingScreen"); if (loadingScreen != NULL) { std::string screenPath = queryString(loadingScreen, "screenPath");