diff options
| author | Kris Parker | 2009-11-01 00:56:46 +0000 |
|---|---|---|
| committer | Kris Parker | 2009-11-01 00:56:46 +0000 |
| commit | 7f7a1265ef12d035629b59529a065bbd70689e7b (patch) | |
| tree | af79673d8d376fc34dc63b3ce23d2b965f667b52 /GameBuildings.cpp | |
| parent | 168a81a8bc3b2693d152a5bc485cd4cf914899d9 (diff) | |
| download | stonesense-7f7a1265ef12d035629b59529a065bbd70689e7b.tar.gz stonesense-7f7a1265ef12d035629b59529a065bbd70689e7b.tar.bz2 stonesense-7f7a1265ef12d035629b59529a065bbd70689e7b.tar.xz | |
Make tile occupancy flags available
Diffstat (limited to 'GameBuildings.cpp')
| -rw-r--r-- | GameBuildings.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/GameBuildings.cpp b/GameBuildings.cpp index 46454ed..5b0cc72 100644 --- a/GameBuildings.cpp +++ b/GameBuildings.cpp @@ -97,16 +97,17 @@ void MergeBuildingsToSegment(vector<t_building>* buildings, WorldSegment* segmen bool inside = segment->CoordinateInsideSegment(xx,yy, tempbuilding.z);
if(inside){
//want hashtable :(
- b = segment->getBlock( xx, yy, tempbuilding.z);
+ // will need all new bs now
+ //b = segment->getBlock( xx, yy, tempbuilding.z);
- if(!b){
+ //if(!b){
//inside segment, but no block to represent it
b = new Block(segment);
b->x = xx;
b->y = yy;
b->z = tempbuilding.z;
segment->addBlock( b );
- }
+ //}
if( b ){
//handle special case where zones and stockpiles overlap buildings, and try to replace them
|
