diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-01-12 07:40:29 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-01-12 07:40:29 -0500 |
commit | 1574754cdaca14d68459cc520b63b6b3c449ecbd (patch) | |
tree | 45964411f6e342386914e6688e31a5ccec6d4e5a /src/world.cpp | |
parent | d3792c499ce9e33f314e06d102d2a0119108e8d3 (diff) | |
parent | e08983ddccf0beee79e63bdf3ef1b839ea947c7a (diff) |
links / lamps
Diffstat (limited to 'src/world.cpp')
-rw-r--r-- | src/world.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/world.cpp b/src/world.cpp index e2c6aa9..451a022 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -1057,9 +1057,9 @@ LOOOOP: goto LOOOOP; } } -void World::addStructure(_TYPE t,BUILD_SUB sub, float x,float y,World *inside){ +void World::addStructure(BUILD_SUB sub, float x,float y,World *inside){ build.push_back(new Structures()); - build.back()->spawn(t,sub,x,y,this); + build.back()->spawn(sub,x,y,this); build.back()->inWorld=this; build.back()->inside = (World *)inside; ((IndoorWorld *)inside)->outside = this; @@ -1067,11 +1067,11 @@ void World::addStructure(_TYPE t,BUILD_SUB sub, float x,float y,World *inside){ entity.push_back(build.back()); } -void World::addVillage(int bCount, int npcMin, int npcMax,_TYPE t,World *inside){ +void World::addVillage(int bCount, int npcMin, int npcMax,World *inside){ std::cout << npcMin << ", " << npcMax << std::endl; //int xwasd; for(int i = 0; i < bCount; i++){ - addStructure(t,HOUSE,x_start + (i * 300),100,inside); + addStructure(HOUSE,x_start + (i * 300),100,inside); /*std::cout<<"1\n"; HERE: xwasd = (rand()%(int)x+1000*HLINE); |