summaryrefslogtreecommitdiff
path: root/Block.cpp
diff options
context:
space:
mode:
authorJapa Illo2012-04-05 09:20:23 +0200
committerJapa Illo2012-04-05 09:20:23 +0200
commitea2e9dc5618ff9fbf2a9bf772f40118e8ab1defd (patch)
tree3bd859d1b8919f8502219a146fe0ce2cef3125de /Block.cpp
parent80329a160e26950bd02298e450c44a99a9c21efd (diff)
downloadstonesense-ea2e9dc5618ff9fbf2a9bf772f40118e8ab1defd.tar.gz
stonesense-ea2e9dc5618ff9fbf2a9bf772f40118e8ab1defd.tar.bz2
stonesense-ea2e9dc5618ff9fbf2a9bf772f40118e8ab1defd.tar.xz
Fixed item subtypes, made creature happiness only show on dwarves.
Signed-off-by: Japa Illo <japa.mala.illo@gmail.com>
Diffstat (limited to 'Block.cpp')
-rw-r--r--Block.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Block.cpp b/Block.cpp
index dd1f2b7..76a5822 100644
--- a/Block.cpp
+++ b/Block.cpp
@@ -292,10 +292,10 @@ void Block::Draw()
{
if(
contentLoader->itemConfigs[Item.item.type] &&
- (Item.item.type < contentLoader->itemConfigs[Item.item.type]->subItems.size()) &&
- contentLoader->itemConfigs[Item.item.type]->subItems[Item.item.type])
+ (Item.item.index < contentLoader->itemConfigs[Item.item.type]->subItems.size()) &&
+ contentLoader->itemConfigs[Item.item.type]->subItems[Item.item.index])
{
- contentLoader->itemConfigs[Item.item.type]->subItems[Item.item.type]->sprite.draw_world(x, y, z, this);
+ contentLoader->itemConfigs[Item.item.type]->subItems[Item.item.index]->sprite.draw_world(x, y, z, this);
}
else if (
contentLoader->itemConfigs[Item.item.type] &&