From be4a87c9f0e42c026b4bd11cb9a6730b3f574c45 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 10 May 2008 18:13:24 +0000 Subject: Fixed monster colours requested in maps not being applied. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4991 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monplace.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc index f2197a952d..4fbb8095cf 100644 --- a/crawl-ref/source/monplace.cc +++ b/crawl-ref/source/monplace.cc @@ -763,6 +763,11 @@ static int _place_monster_aux( const mgen_data &mg, else define_monster(id); + // If the caller requested a specific colour for this monster, + // apply it now. + if (mg.colour != BLACK) + menv[id].colour = mg.colour; + // The return of Boris is now handled in monster_die()... // not setting this for Boris here allows for multiple Borises // in the dungeon at the same time. -- bwr -- cgit v1.2.3-54-g00ecf