summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-06 20:14:35 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-06 20:14:35 +0000
commit44d7fbb36c55859117824fe25a298afbe437221b (patch)
tree8854c7d492879cb8ddda79ca91f44d964c5828a9 /crawl-ref/source/initfile.cc
parentb847d4bad842066f8721cf68650d5087528e8486 (diff)
downloadcrawl-ref-44d7fbb36c55859117824fe25a298afbe437221b.tar.gz
crawl-ref-44d7fbb36c55859117824fe25a298afbe437221b.zip
Fix 1870427: Max hp misreported if frail and rotted.
Fix 2002931: feature_item_brand not working No, it's not the important bugs, but at least these are bugs I can reproduce. :P git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6433 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index ed89744d20..9745be3425 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -420,14 +420,18 @@ static unsigned curses_attribute(const std::string &field)
int col = field.find(":");
int colour = str_to_colour(field.substr(col + 1));
if (colour == -1)
+ {
crawl_state.add_startup_error(
make_stringf("Bad highlight string -- %s\n", field.c_str()));
+ }
else
return CHATTR_HILITE | (colour << 8);
}
else if (field != "none")
+ {
crawl_state.add_startup_error(
make_stringf( "Bad colour -- %s\n", field.c_str() ) );
+ }
return CHATTR_NORMAL;
}
@@ -2034,7 +2038,7 @@ void game_options::read_option_line(const std::string &str, bool runscript)
else CURSES_OPTION(neutral_brand);
else CURSES_OPTION(stab_brand);
else CURSES_OPTION(may_stab_brand);
- else CURSES_OPTION_NAMED("stair_item_brand", feature_item_brand);
+ else CURSES_OPTION(feature_item_brand);
else CURSES_OPTION(trap_item_brand);
// This is useful for terms where dark grey does
// not have standout modes (since it's black on black).