diff options
| author | Japa | 2011-01-22 05:05:13 +0000 |
|---|---|---|
| committer | Japa | 2011-01-22 05:05:13 +0000 |
| commit | 3e627f73cdbf1073f56bfc2aee5def4f3ba2678f (patch) | |
| tree | b30bc7eefef25cc61d73ae14b2a26eff00d08683 /Block.cpp | |
| parent | b17f42822cd3d0766e32f46dea58e36102f8a23e (diff) | |
| download | stonesense-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.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -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];
|
