From fe3ad5a6e53874ab5e046e3e893c8a45fd63701a Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 9 Feb 2008 17:07:46 +0000 Subject: Fix 1889917: Respect mon_glyph option also for randomly coloured monsters, most notably gila monsters and killer klowns. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3415 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/mon-util.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/mon-util.cc') diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index f941730d8c..ba07ef0b95 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -1388,10 +1388,16 @@ void define_monster(monsters &mons) case MONS_BUTTERFLY: case MONS_SPATIAL_VORTEX: case MONS_KILLER_KLOWN: + if (col != BLACK) // maybe overwritten by the mon_glyph option + break; + col = random_colour(); break; case MONS_GILA_MONSTER: + if (col != BLACK) // maybe overwritten by the mon_glyph option + break; + temp_rand = random2(7); col = (temp_rand >= 5 ? LIGHTRED : // 2/7 -- cgit v1.2.3-54-g00ecf