From 54b664622737740bbb42c13d594b66a21d58ca5f Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 16 Mar 2015 10:30:50 -0400 Subject: Removed "../" from file paths --- src/entityfactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/entityfactory.cpp') diff --git a/src/entityfactory.cpp b/src/entityfactory.cpp index bad72cf..6fb86ca 100644 --- a/src/entityfactory.cpp +++ b/src/entityfactory.cpp @@ -24,7 +24,7 @@ std::shared_ptr EntityFactory::createNamedEntity(const std::string name) EntityData data = factories[name]; if (it == factories.end()) { - xmlDocPtr doc = xmlParseFile(("../entities/" + name + ".xml").c_str()); + xmlDocPtr doc = xmlParseFile(("entities/" + name + ".xml").c_str()); if (doc == nullptr) { fprintf(stderr, "Error reading entity %s\n", name.c_str()); @@ -85,7 +85,7 @@ std::shared_ptr EntityFactory::createNamedEntity(const std::string name) if (!strcmp(data.action, "save")) { auto component = std::make_shared([&] (Game& game, Entity&) { - playSound("../res/Pickup_Coin23.wav", 0.25); + playSound("res/Pickup_Coin23.wav", 0.25); game.saveGame(); }); -- cgit 1.4.1