summaryrefslogtreecommitdiff
path: root/Block.cpp
diff options
context:
space:
mode:
authorJapa Illo2012-03-24 13:27:25 +0100
committerJapa Illo2012-03-24 13:27:25 +0100
commit3f7c63d777bf3722c07fdea721652da22fd2bbc2 (patch)
treefdafc632a4c9fa26cfc82df51bd2be6261dc5bda /Block.cpp
parent9e7bff5c321b3da4cf73546ede00095351ee1b43 (diff)
downloadstonesense-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.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Block.cpp b/Block.cpp
index dd79208..d165a8d 100644
--- a/Block.cpp
+++ b/Block.cpp
@@ -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