diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-04-22 15:58:36 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-04-22 15:58:36 +0000 |
commit | 13abff271666dcc566102311c3b9d237ea04f933 (patch) | |
tree | 499b2bb9a9f91a7b201f8e0102dc2befa5bcb057 /crawl-ref/source/initfile.cc | |
parent | 5c8009179acad07659f28a6995438b72a7a6c183 (diff) | |
download | crawl-ref-13abff271666dcc566102311c3b9d237ea04f933.tar.gz crawl-ref-13abff271666dcc566102311c3b9d237ea04f933.zip |
* Tweak Xom's ideas about what makes a funny or boring death.
* Add another option (*sigh*) covering whether W=T and P=R. (Defaults to
false.)
* Various spacing and comment fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9675 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 8f09c0597e..1f48e6a6d2 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -726,6 +726,7 @@ void game_options::reset_options() show_uncursed = true; easy_open = true; easy_unequip = true; + equip_unequip = false; easy_butcher = true; always_confirm_butcher = false; chunks_autopickup = true; @@ -916,25 +917,25 @@ void game_options::reset_options() tile_window_col = MAP_YELLOW; // font selection - tile_font_crt_file = "VeraMono.ttf"; - tile_font_crt_size = 0; - tile_font_stat_file = "VeraMono.ttf"; - tile_font_stat_size = 0; - tile_font_msg_file = "VeraMono.ttf"; - tile_font_msg_size = 0; - tile_font_tip_file = "VeraMono.ttf"; - tile_font_tip_size = 0; - tile_font_lbl_file = "Vera.ttf"; - tile_font_lbl_size = 0; + tile_font_crt_file = "VeraMono.ttf"; + tile_font_crt_size = 0; + tile_font_stat_file = "VeraMono.ttf"; + tile_font_stat_size = 0; + tile_font_msg_file = "VeraMono.ttf"; + tile_font_msg_size = 0; + tile_font_tip_file = "VeraMono.ttf"; + tile_font_tip_size = 0; + tile_font_lbl_file = "Vera.ttf"; + tile_font_lbl_size = 0; // window layout - tile_key_repeat = true; - tile_full_screen = SCREENMODE_AUTO; - tile_window_width = 0; - tile_window_height = 0; - tile_map_pixels = 0; - tile_tooltip_ms = 500; - tile_tag_pref = crawl_state.arena ? TAGPREF_NAMED : TAGPREF_ENEMY; + tile_key_repeat = true; + tile_full_screen = SCREENMODE_AUTO; + tile_window_width = 0; + tile_window_height = 0; + tile_map_pixels = 0; + tile_tooltip_ms = 500; + tile_tag_pref = crawl_state.arena ? TAGPREF_NAMED : TAGPREF_ENEMY; #endif // map each colour to itself as default @@ -1510,8 +1511,10 @@ void game_options::read_options(InitLineInput &il, bool runscript, { #ifdef CLUA_BINDINGS if (luacode.run(clua)) + { mprf(MSGCH_ERROR, "Lua error: %s", luacode.orig_error().c_str()); + } luacode.clear(); #endif } @@ -2143,6 +2146,7 @@ void game_options::read_option_line(const std::string &str, bool runscript) else BOOL_OPTION_NAMED("easy_quit_item_lists", easy_quit_item_prompts); else BOOL_OPTION(easy_open); else BOOL_OPTION(easy_unequip); + else BOOL_OPTION(equip_unequip); else BOOL_OPTION_NAMED("easy_armour", easy_unequip); else BOOL_OPTION_NAMED("easy_armor", easy_unequip); else BOOL_OPTION(easy_butcher); @@ -3159,11 +3163,15 @@ void game_options::read_option_line(const std::string &str, bool runscript) else if (key == "constant") { if (variables.find(field) == variables.end()) + { report_error(make_stringf("No variable named '%s' to make " "constant", field.c_str())); + } else if (constants.find(field) != constants.end()) + { report_error(make_stringf("'%s' is already a constant", field.c_str())); + } else constants.insert(field); } |