summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-21 18:40:50 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-21 18:40:50 -0600
commit5961e9e4fc1842801d800fbbe37dc41bf8c7f037 (patch)
tree147b0c0c41329eec76004d0d6896eba85a830a62 /crawl-ref/source/tilepick.cc
parent23a44595f9eab8d72e2bc828952058c38bcab284 (diff)
downloadcrawl-ref-5961e9e4fc1842801d800fbbe37dc41bf8c7f037.tar.gz
crawl-ref-5961e9e4fc1842801d800fbbe37dc41bf8c7f037.zip
Make (very) ugly thing corpse tiles handle the different colors.
I can't test this in-game, but main.png displays all the different colored corpses properly, so I think it works.
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: