diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index b24c747..a7a8991 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -96,9 +96,6 @@ int main(int argc, char *argv[]){ IndoorWorld *iw=new IndoorWorld(); iw->generate(200); - test->toRight=iw; - iw->toLeft=test; - // Make the player player=new Player(); player->spawn(0,100); @@ -110,7 +107,8 @@ int main(int argc, char *argv[]){ static unsigned int i; build[0].spawn(STRUCTURET,0,10); - for(i=0;i<=entity.size();i++){ + build[0].inside=iw; + for(i=0;i<entity.size()+1;i++){ entity[i]->inWorld=test; } |