summaryrefslogtreecommitdiff
path: root/Block.cpp
diff options
context:
space:
mode:
authorJapa2011-01-22 05:05:13 +0000
committerJapa2011-01-22 05:05:13 +0000
commit3e627f73cdbf1073f56bfc2aee5def4f3ba2678f (patch)
treeb30bc7eefef25cc61d73ae14b2a26eff00d08683 /Block.cpp
parentb17f42822cd3d0766e32f46dea58e36102f8a23e (diff)
downloadstonesense-3e627f73cdbf1073f56bfc2aee5def4f3ba2678f.tar.gz
stonesense-3e627f73cdbf1073f56bfc2aee5def4f3ba2678f.tar.bz2
stonesense-3e627f73cdbf1073f56bfc2aee5def4f3ba2678f.tar.xz
Got meself some wide and tall trees working
Diffstat (limited to 'Block.cpp')
-rw-r--r--Block.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/Block.cpp b/Block.cpp
index 76033f9..538f65c 100644
--- a/Block.cpp
+++ b/Block.cpp
@@ -46,6 +46,7 @@ Block::Block(WorldSegment* ownerSegment)
this->material.type = INVALID_INDEX;
this->material.index = INVALID_INDEX;
+ creature = 0;
}
@@ -225,13 +226,13 @@ void Block::Draw(){
}
- //vegetation
- if(tree.index > 0 || tree.type > 0){
- c_sprite * vegetationsprite = 0;
- vegetationsprite = GetSpriteVegetation( (TileClass) getVegetationType( this->floorType ), tree.index );
- if(vegetationsprite)
- vegetationsprite->draw_world(x, y, z);
- }
+ ////vegetation
+ //if(tree.index > 0 || tree.type > 0){
+ // c_sprite * vegetationsprite = 0;
+ // vegetationsprite = GetSpriteVegetation( (TileClass) getVegetationType( this->floorType ), tree.index );
+ // if(vegetationsprite)
+ // vegetationsprite->draw_world(x, y, z);
+ //}
//shadow
if (shadow > 0)
@@ -246,8 +247,6 @@ void Block::Draw(){
if(building.info.type != BUILDINGTYPE_NA && !skipBuilding)
{
- int spriteNum = SPRITEOBJECT_NA; //getBuildingSprite(this->building, mirroredBuilding);
-
for(uint32_t i=0; i < building.sprites.size(); i++)
{
spriteobject = &building.sprites[i];