This commit is contained in:
2026-02-26 15:45:27 +03:00
parent 2539ceee03
commit 06c2b1511a
5 changed files with 27 additions and 49 deletions

View File

@@ -149,7 +149,7 @@ void Game::LoadLevelXML(const char* mapname)
buffer, result.description(), result.offset);
}
for (pugi::xml_node entity : doc.child("Entities").children("Entity")) {
for (pugi::xml_node entity : doc.child("Level").child("Entities").children("Entity")) {
pugi::xml_attribute entityname = entity.attribute("name");
pugi::xml_attribute classname = entity.attribute("classname");

View File

@@ -200,7 +200,7 @@ void SceneManager::loadScene(const char* filename)
}
pugi::xml_node root = doc.document_element();
const char* scenefilename = root.child("SceneFile").attribute("filename").value();
const char* scenefilename = root.child("LevelDescription").child("SceneFile").attribute("filename").value();
m_sceneName = getFileNameWithoutExtension(scenefilename);