From 2aa90440dae5dcabd7e48618888d8bc697b3f2d9 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sun, 17 Dec 2006 07:13:09 +0000 Subject: Version == 0.1.6. Fixed misapplication of brand colours for hi: brands. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.1.6@643 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/libunix.cc | 4 +++- crawl-ref/source/version.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index 7b4884cb04..02b8d0d8f5 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -441,7 +441,9 @@ void textcolor(int col) if ((brand & CHATTR_ATTRMASK) == CHATTR_HILITE) { - bg = (brand & CHATTR_COLMASK) >> 8; + bg = translate_colour( + macro_colour( (brand & CHATTR_COLMASK) >> 8 )); + if (fg == bg) fg = COLOR_BLACK; } diff --git a/crawl-ref/source/version.h b/crawl-ref/source/version.h index 1b28d66e62..a2a0842ee6 100644 --- a/crawl-ref/source/version.h +++ b/crawl-ref/source/version.h @@ -41,7 +41,7 @@ /* *********************************************************************** * called from: chardump - command - newgame * *********************************************************************** */ -#define VERSION "0.1.5 (crawl-ref)" +#define VERSION "0.1.6 (crawl-ref)" // last updated 20feb2001 {GDL} /* *********************************************************************** -- cgit v1.2.3-54-g00ecf