diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-08-09 03:35:33 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-08-09 03:35:33 +0200 |
commit | 938afc2ac0c76619027d7e043f9f87636d443879 (patch) | |
tree | 9c2738deda92db29778efd4a703f4ae8a1712404 /crawl-ref/source/colour.cc | |
parent | c4bde160c8151f85aa2f7b4adafcc80af03113f9 (diff) | |
download | crawl-ref-938afc2ac0c76619027d7e043f9f87636d443879.tar.gz crawl-ref-938afc2ac0c76619027d7e043f9f87636d443879.zip |
Require explicit enums for Lua colours.
In theory, we could allow defining them with a floating name, marshalling
that by string and so on, but that'd be a large pile of useless work.
Diffstat (limited to 'crawl-ref/source/colour.cc')
-rw-r--r-- | crawl-ref/source/colour.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/colour.cc b/crawl-ref/source/colour.cc index 76ee01ed1b..65b34f6279 100644 --- a/crawl-ref/source/colour.cc +++ b/crawl-ref/source/colour.cc @@ -537,6 +537,10 @@ void init_element_colours() add_element_colour(new element_colour_calc( ETC_RANDOM, "random", _etc_random )); + // redefined by Lua later + add_element_colour(new element_colour_calc( + ETC_DISCO, "disco", _etc_random + )); } void clear_colours_on_exit() |