aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-02-23 07:29:25 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-02-23 07:29:25 -0500
commitf67648a124655305c3e8947fe312b97ccf74e2fd (patch)
treee2c2a006698836070b3ce651ac0fe89d192da6bc /src/gameplay.cpp
parent0075f9e7997d01fa2105bff38e40a3d5b8b421e6 (diff)
parent0d77d11b708e57546d8267e957230c30bc5d048c (diff)
Villages!
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);