summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-21 18:39:01 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-21 18:39:01 -0600
commit90104081ec1d5f429cdf73998bca2e0b67df78d3 (patch)
tree1b877a97a7861397b4f04ecd06e08354ecef27d5 /crawl-ref/source/tilepick.cc
parente64350b0f7fc7837bb13abd5cba7f140a21e60de (diff)
downloadcrawl-ref-90104081ec1d5f429cdf73998bca2e0b67df78d3.tar.gz
crawl-ref-90104081ec1d5f429cdf73998bca2e0b67df78d3.zip
Make ugly_thing_colour_offset() take only a color instead of a monster.
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r--crawl-ref/source/tilepick.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc
index ba1a5e941b..8f9fdc232d 100644
--- a/crawl-ref/source/tilepick.cc
+++ b/crawl-ref/source/tilepick.cc
@@ -358,7 +358,7 @@ int tileidx_monster_base(const monsters *mon, bool detected)
{
const int ugly_tile = (type == MONS_VERY_UGLY_THING) ?
TILEP_MONS_VERY_UGLY_THING : TILEP_MONS_UGLY_THING;
- int colour_offset = ugly_thing_colour_offset(mon);
+ int colour_offset = ugly_thing_colour_offset(mon->colour);
if (detected || colour_offset == -1)
colour_offset = 0;