diff options
| author | Japa | 2011-02-28 16:44:45 +0000 |
|---|---|---|
| committer | Japa | 2011-02-28 16:44:45 +0000 |
| commit | 1baec40c25797cbe6a3274b2e142aaeb7291c5ab (patch) | |
| tree | f5d6bca3047a43941b019d692782d773d9b5d9fc /BlockTree.cpp | |
| parent | 92b8343b5ec1758e5161ac282510d787ba32f00b (diff) | |
| download | stonesense-1baec40c25797cbe6a3274b2e142aaeb7291c5ab.tar.gz stonesense-1baec40c25797cbe6a3274b2e142aaeb7291c5ab.tar.bz2 stonesense-1baec40c25797cbe6a3274b2e142aaeb7291c5ab.tar.xz | |
few more fixes, changed the way text is displayed. added in dry grasses and dead grasses.
Diffstat (limited to 'BlockTree.cpp')
| -rw-r--r-- | BlockTree.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/BlockTree.cpp b/BlockTree.cpp index 52694f5..f6126ca 100644 --- a/BlockTree.cpp +++ b/BlockTree.cpp @@ -25,7 +25,8 @@ void c_block_tree_twig::insert_sprites(WorldSegment *w, int x, int y, int z, Blo w->addBlock(b_orig);
}
b_orig->building.sprites.push_back(own_sprite);
- b_orig->building.info.type = BUILDINGTYPE_TREE;
+ if(b_orig->building.info.type == BUILDINGTYPE_NA)
+ b_orig->building.info.type = BUILDINGTYPE_TREE;
b_orig->building.parent = parent;
}
for(int i = 0; i < eastward_growth.size(); i++)
@@ -49,7 +50,8 @@ void c_block_tree_twig::insert_sprites(WorldSegment *w, int x, int y, int z, Blo w->addBlock(b_orig);
}
b_orig->building.sprites.push_back(eastward_growth[i]);
- b_orig->building.info.type = BUILDINGTYPE_TREE;
+ if(b_orig->building.info.type == BUILDINGTYPE_NA)
+ b_orig->building.info.type = BUILDINGTYPE_TREE;
b_orig->building.parent = parent;
}
}
@@ -74,7 +76,8 @@ void c_block_tree_twig::insert_sprites(WorldSegment *w, int x, int y, int z, Blo w->addBlock(b_orig);
}
b_orig->building.sprites.push_back(westward_growth[i]);
- b_orig->building.info.type = BUILDINGTYPE_TREE;
+ if(b_orig->building.info.type == BUILDINGTYPE_NA)
+ b_orig->building.info.type = BUILDINGTYPE_TREE;
b_orig->building.parent = parent;
}
}
|
