diff options
| author | Japa | 2011-02-27 18:00:51 +0000 |
|---|---|---|
| committer | Japa | 2011-02-27 18:00:51 +0000 |
| commit | 663aa547439c9c2dc977bb3601d91f11e176b83a (patch) | |
| tree | 554d5b400c3b5d53ae3e9c196a4b474395b36972 /Block.cpp | |
| parent | 62050f4bc59775609be524a90764fe9cf5a5f4ee (diff) | |
| download | stonesense-663aa547439c9c2dc977bb3601d91f11e176b83a.tar.gz stonesense-663aa547439c9c2dc977bb3601d91f11e176b83a.tar.bz2 stonesense-663aa547439c9c2dc977bb3601d91f11e176b83a.tar.xz | |
More bugfixing. changed the way trees are read.
Diffstat (limited to 'Block.cpp')
| -rw-r--r-- | Block.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -46,6 +46,14 @@ Block::Block(WorldSegment* ownerSegment) this->material.type = INVALID_INDEX;
this->material.index = INVALID_INDEX;
+
+ wallborders = 0;
+ floorborders = 0;
+ openborders = 255;
+ rampborders = 0;
+ upstairborders = 0;
+ downstairborders = 0;
+ lightborders = 255;
creature = 0;
}
@@ -268,9 +276,6 @@ void Block::Draw(){ }
}
-
-
-
//Draw Stairs
if(stairType > 0)
{
@@ -338,7 +343,7 @@ void Block::Draw(){ // creature
// ensure there is *some* creature according to the map data
// (no guarantee it is the right one)
- if(creaturePresent)
+ if(creaturePresent && (config.show_hidden_blocks || !designation.bits.hidden))
{
DrawCreature(drawx, drawy, creature, this);
}
@@ -428,7 +433,7 @@ void Block::Drawcreaturetext(){ // creature
// ensure there is *some* creature according to the map data
// (no guarantee it is the right one)
- if(creaturePresent)
+ if(creaturePresent && (config.show_hidden_blocks || !designation.bits.hidden))
{
DrawCreatureText(drawx, drawy, creature);
}
|
