diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-28 14:47:11 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-28 14:47:11 +0000 |
commit | e8062078edfe77f4d6f38a7732bb5d08d8c8a048 (patch) | |
tree | 5307b6d75f3e6c3ec6e0fb06fa69db231763c09c /crawl-ref/source/initfile.cc | |
parent | c599f54728363979a659179b02a26784dcb849ae (diff) | |
download | crawl-ref-e8062078edfe77f4d6f38a7732bb5d08d8c8a048.tar.gz crawl-ref-e8062078edfe77f4d6f38a7732bb5d08d8c8a048.zip |
Colour unvisited stone stairs white (can be customised with the feature option).
Fixed level compiler not croaking for bad monster names.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1678 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 86e169d2a9..1c6d28bac8 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -848,11 +848,11 @@ void game_options::add_feature_override(const std::string &text) std::string props = text.substr(spos + 1, epos - spos - 1); std::vector<std::string> iprops = split_string(",", props, true, true); - if (iprops.size() < 1 || iprops.size() > 5) + if (iprops.size() < 1 || iprops.size() > 7) return; - if (iprops.size() < 5) - iprops.resize(5); + if (iprops.size() < 7) + iprops.resize(7); trim_string(fname); std::vector<dungeon_feature_type> feats = @@ -870,6 +870,8 @@ void game_options::add_feature_override(const std::string &text) fov.override.colour = str_to_colour(iprops[2], BLACK); fov.override.map_colour = str_to_colour(iprops[3], BLACK); fov.override.seen_colour = str_to_colour(iprops[4], BLACK); + fov.override.em_colour = str_to_colour(iprops[5], BLACK); + fov.override.seen_em_colour = str_to_colour(iprops[6], BLACK); feature_overrides.push_back(fov); } |