aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index fd8ed4d..1bfce77 100644
--- a/main.cpp
+++ b/main.cpp
@@ -265,8 +265,8 @@ int main(int argc, char *argv[])
for (const auto &xf : xmlFiles) {
if (xf[0] != '.') {
XMLDocument xmld;
- auto file = (xmlFolder + xf).c_str();
- xmld.LoadFile(file);
+ auto file = xmlFolder + xf;
+ xmld.LoadFile(file.c_str());
auto xmle = xmld.FirstChildElement("World");
@@ -286,7 +286,8 @@ int main(int argc, char *argv[])
xmle->DeleteAttribute("dindex");
xmle = xmle->NextSiblingElement();
}
- xmld.SaveFile(file, false);
+
+ xmld.SaveFile(file.c_str(), false);
}
}
@@ -328,6 +329,10 @@ int main(int argc, char *argv[])
arena->setBackground(WorldBGType::Forest);
arena->setBGM("assets/music/embark.wav");
+
+ player->inv->addItem("Wood Sword", 10);
+
+
// the main loop, in all of its gloriousness..
std::thread([&]{
while (gameRunning) {