summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/tilepick.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc
index 591a6459fe..26563f3de1 100644
--- a/crawl-ref/source/tilepick.cc
+++ b/crawl-ref/source/tilepick.cc
@@ -352,18 +352,16 @@ int tileidx_monster_base(const monsters *mon, bool detected)
// ugly things ('u')
case MONS_UGLY_THING:
- {
- const int colour_offset = ugly_thing_colour_offset(mon);
- if (colour_offset == -1)
- colour_offset = 0;
- return TILEP_MONS_UGLY_THING + colour_offset;
- }
case MONS_VERY_UGLY_THING:
{
+ const int ugly_tile = (type == MONS_VERY_UGLY_THING) ?
+ TILEP_MONS_VERY_UGLY_THING : TILEP_MONS_UGLY_THING;
const int colour_offset = ugly_thing_colour_offset(mon);
- if (colour_offset == -1)
+
+ if (colour_offset == -1 || detected)
colour_offset = 0;
- return TILEP_MONS_VERY_UGLY_THING + colour_offset;
+
+ return (ugly_tile + colour_offset);
}
// vortices ('v')