summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r--crawl-ref/source/tilepick.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc
index b5d5ffd5e3..d8f8e85cb7 100644
--- a/crawl-ref/source/tilepick.cc
+++ b/crawl-ref/source/tilepick.cc
@@ -1737,9 +1737,17 @@ static int _tileidx_corpse(const item_def &item)
// ugly things ('u')
case MONS_UGLY_THING:
- return TILE_CORPSE_UGLY_THING;
case MONS_VERY_UGLY_THING:
- return TILE_CORPSE_VERY_UGLY_THING;
+ {
+ const int ugly_corpse_tile = (type == MONS_VERY_UGLY_THING) ?
+ TILE_CORPSE_VERY_UGLY_THING : TILE_CORPSE_UGLY_THING;
+ int colour_offset = ugly_thing_colour_offset(item.colour);
+
+ if (colour_offset == -1)
+ colour_offset = 0;
+
+ return (ugly_corpse_tile + colour_offset);
+ }
// worms ('w')
case MONS_KILLER_BEE_LARVA: