aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-03-01 08:43:33 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-03-01 08:43:33 -0500
commitd42b81661ac1d1303746082b3606e80e92f5fdd6 (patch)
tree1458419db1bc95c0ac63311385c34cb2913445d2 /src/gameplay.cpp
parent20948cfe47f1fbeeed04e890c457d83cc826d74d (diff)
parent47f8aa5b312a5ef671e83322bcbe201a034f84c0 (diff)
Merge branch 'master' of http://github.com/tcsullivan/gamedev
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r--src/gameplay.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
index e16e892..3d2ea25 100644
--- a/src/gameplay.cpp
+++ b/src/gameplay.cpp
@@ -43,7 +43,7 @@ int commonAIFunc(NPC *speaker){
* Load the current world's XML file into memory for reading.
*/
- xml.LoadFile(currentXML);
+ xml.LoadFile(currentXML.c_str());
exml = xml.FirstChildElement("Dialog");
/*
@@ -221,7 +221,7 @@ void commonTriggerFunc(Mob *callee){
if(!lock){
lock = true;
- xml.LoadFile(currentXML);
+ xml.LoadFile(currentXML.c_str());
exml = xml.FirstChildElement("Trigger");
while(strcmp(exml->Attribute("id"),callee->heyid.c_str()))
@@ -282,12 +282,12 @@ void initEverything(void){
/*
* Read in the XML file.
*/
-
+
currentWorld = loadWorldFromXML(xmlFiles[i].c_str());
break;
}
}
-
+
pauseMenu.items.push_back(ui::createParentButton({-256/2,0},{256,75},{0.0f,0.0f,0.0f}, "Resume"));
pauseMenu.items.push_back(ui::createChildButton({-256/2,-100},{256,75},{0.0f,0.0f,0.0f}, "Options"));
pauseMenu.items.push_back(ui::createButton({-256/2,-200},{256,75},{0.0f,0.0f,0.0f}, "Save and Quit", ui::quitGame));
@@ -320,7 +320,7 @@ extern std::vector<NPC *> AIpreaddr;
void destroyEverything(void){
currentWorld->save();
delete currentWorld;
- delete[] currentXML;
+ //delete[] currentXML;
while(!AIpreload.empty())
AIpreload.pop_back();