aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-04-04 07:42:19 -0400
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-04-04 07:42:19 -0400
commitb2ea70a36ba2249383c9b5cb3c2c784c28311938 (patch)
treea1f88f257a0b718137d29547179a553f711d1096 /src
parenta45daeda3633bdf25267a0186b39618269dca970 (diff)
Scrub
Diffstat (limited to 'src')
-rw-r--r--src/entities.cpp4
-rw-r--r--src/world.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/entities.cpp b/src/entities.cpp
index f4e2dd7..a10649f 100644
--- a/src/entities.cpp
+++ b/src/entities.cpp
@@ -10,6 +10,8 @@ extern World *currentWorld; // main.cpp
extern unsigned int loops; // main.cpp
extern unsigned int tickCount; // main.cpp
+extern std::string xmlFolder;
+
GLuint waterTex;
std::vector<int (*)(NPC *)> AIpreload; // A dynamic array of AI functions that are being preloaded
@@ -697,7 +699,7 @@ void Player::save(void){
void Player::sspawn(float x,float y){
unsigned int i;
uint count;
- std::ifstream in ("storyXML/main.dat",std::ios::in | std::ios::binary);
+ std::ifstream in (std::string(xmlFolder + "main.dat"),std::ios::in | std::ios::binary);
spawn(x,y);
if(in.good()){
diff --git a/src/world.cpp b/src/world.cpp
index 8a46e8d..bcd4f7a 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -1505,7 +1505,7 @@ loadWorldFromXMLNoSave( std::string path ) {
return NULL;
std::cout << "File path: " << path << std::endl;
- currentXML = std::string("storyXML/" + path);
+ currentXML = std::string(xmlFolder + path);
std::cout << "Full file path: " << currentXML << std::endl;
xml.LoadFile(currentXML.c_str());