aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-02-12 08:47:15 -0500
committerClyne Sullivan <tullivan99@gmail.com>2016-02-12 08:47:15 -0500
commitba7df965e73e121820f20e3a0e57631d078c11db (patch)
tree75f09a352be19c369f7bd02e279a275322634d67 /src/gameplay.cpp
parent3033594b89f23e65b6152daa6610f991307f2f67 (diff)
more saving/loading
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r--src/gameplay.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
index e252c26..4bbc672 100644
--- a/src/gameplay.cpp
+++ b/src/gameplay.cpp
@@ -278,7 +278,7 @@ void initEverything(void){
*/
for(unsigned int i=0;i<xmlFiles.size();i++){
- if(strncmp(xmlFiles[i].c_str(),".",1) && strncmp(xmlFiles[i].c_str(),"..",2)){
+ if(xmlFiles[i] != "." && xmlFiles[i] != ".." && strcmp(xmlFiles[i].c_str()+xmlFiles[i].size()-3,"dat")){
/*
* Read in the XML file.
@@ -307,9 +307,9 @@ void initEverything(void){
/*
* Spawn the player and begin the game.
*/
-
+
player = new Player();
- player->spawn(200,100);
+ player->sspawn(0,100);
currentWorld->bgmPlay(NULL);
atexit(destroyEverything);