summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/branch.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-03-13 04:34:08 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-03-13 10:43:28 +0100
commit1495978437e71a2461e7d35e00e16c8edc131d13 (patch)
tree2d6c1e283f1ea5337dfa8a8c279f55ef850bc888 /crawl-ref/source/branch.h
parentb10dbcdf6daad946e426cdb08687ad89c004af5c (diff)
downloadcrawl-ref-1495978437e71a2461e7d35e00e16c8edc131d13.tar.gz
crawl-ref-1495978437e71a2461e7d35e00e16c8edc131d13.zip
Declare an explicit type for colours.
An imperial buttload of places assumes these to be 8 bits, which makes it impossible to add support for 256 (or more!) colours. This commit tries to allow expanding it in the future; sadly, it is badly incomplete. At least, new code can use the new type. Also, beware of "branded" colours which use bits above 8 for inverse, underline, etc.
Diffstat (limited to 'crawl-ref/source/branch.h')
-rw-r--r--crawl-ref/source/branch.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/branch.h b/crawl-ref/source/branch.h
index 9e58a1ab0b..3b86f40e88 100644
--- a/crawl-ref/source/branch.h
+++ b/crawl-ref/source/branch.h
@@ -38,8 +38,8 @@ struct Branch
const char* abbrevname; // "Slime"
const char* entry_message;
bool has_uniques;
- uint8_t floor_colour; // Zot needs special handling.
- uint8_t rock_colour;
+ colour_t floor_colour; // Zot needs special handling.
+ colour_t rock_colour;
int (*mons_rarity_function)(int);
int (*mons_level_function)(int);
int travel_shortcut; // Which key to press for travel.