diff options
| author | Japa Illo | 2012-03-24 13:27:25 +0100 |
|---|---|---|
| committer | Japa Illo | 2012-03-24 13:27:25 +0100 |
| commit | 3f7c63d777bf3722c07fdea721652da22fd2bbc2 (patch) | |
| tree | fdafc632a4c9fa26cfc82df51bd2be6261dc5bda /Block.cpp | |
| parent | 9e7bff5c321b3da4cf73546ede00095351ee1b43 (diff) | |
| download | stonesense-3f7c63d777bf3722c07fdea721652da22fd2bbc2.tar.gz stonesense-3f7c63d777bf3722c07fdea721652da22fd2bbc2.tar.bz2 stonesense-3f7c63d777bf3722c07fdea721652da22fd2bbc2.tar.xz | |
Added rudimentary floor item showage.
Signed-off-by: Japa Illo <japa.mala.illo@gmail.com>
Diffstat (limited to 'Block.cpp')
| -rw-r--r-- | Block.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -63,6 +63,8 @@ Block::Block(WorldSegment* ownerSegment) creature = 0;
engraving_character = 0;
visible = true;
+
+ this->Item.item.type =-1;
}
@@ -281,6 +283,11 @@ void Block::Draw() // vegetationsprite->draw_world(x, y, z);
//}
+ //items
+ if(Item.item.type >= 0)
+ {
+ DrawSpriteFromSheet( 350, IMGObjectSheet, lookupMaterialColor(Item.matt.type, Item.matt.index), drawx, (tileShapeBasic==tiletype_shape_basic::Ramp)?(drawy - ((WALLHEIGHT/2)*config.scale)):drawy , this);
+ }
//shadow
|
