summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/wiz-mon.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-12 23:03:13 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-12 23:03:41 -0800
commit31c5d4f42ba8930dc5758658a5c59d99b0290ed5 (patch)
tree8ae83cbca4e6b3aa7bf3d43bb2cb5a5b6363d173 /crawl-ref/source/wiz-mon.cc
parent63beb01e92ddefa8708b80316fcf27081afe3a06 (diff)
downloadcrawl-ref-31c5d4f42ba8930dc5758658a5c59d99b0290ed5.tar.gz
crawl-ref-31c5d4f42ba8930dc5758658a5c59d99b0290ed5.zip
wiz-mon.cc: fix monser color always being random
Diffstat (limited to 'crawl-ref/source/wiz-mon.cc')
-rw-r--r--crawl-ref/source/wiz-mon.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/wiz-mon.cc b/crawl-ref/source/wiz-mon.cc
index 3701d344a0..f25d064095 100644
--- a/crawl-ref/source/wiz-mon.cc
+++ b/crawl-ref/source/wiz-mon.cc
@@ -97,6 +97,9 @@ void wizard_create_spec_monster_name()
return;
}
+ if (mspec.colour == BLACK && strstr(specs, "col:any") == NULL)
+ mspec.colour = mons_class_colour(mspec.mid);
+
int type = mspec.mid;
if (mons_class_is_zombified(mspec.mid))
type = mspec.monbase;