diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-23 14:30:29 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-23 14:30:29 +0000 |
commit | 0af59f5d233f429a70df12e87993f7bda7de30a7 (patch) | |
tree | 37baf239dd33ab9ca033d170d60ef6665e08f612 /crawl-ref/source/initfile.cc | |
parent | 7b2c4078bbab85c54058384d35c55f1bed19ab21 (diff) | |
download | crawl-ref-0af59f5d233f429a70df12e87993f7bda7de30a7.tar.gz crawl-ref-0af59f5d233f429a70df12e87993f7bda7de30a7.zip |
Introduce a temporary neutral brand for tiles because it was driving me nuts
when testing Ely's pacifying. (Currently only inappropriately reuses
TILE_NEW_STAIR, which will have to be replaced with something more distinctive
some time.)
Also add an option for colouring neutrals on the minimap (defaults to red,
like hostiles) and allow secondary item use by Ctrl-L-clicking on items in
inventory (firing weapons, unwielding rods, etc.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3830 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 8109534c03..f7e9e6bb67 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -805,6 +805,7 @@ void game_options::reset_options() // minimap colours tile_player_col = MAP_WHITE; tile_monster_col = MAP_RED; + tile_neutral_col = MAP_RED; tile_friendly_col = MAP_LTRED; tile_item_col = MAP_GREEN; tile_unseen_col = MAP_BLACK; @@ -2731,6 +2732,11 @@ void game_options::read_option_line(const std::string &str, bool runscript) tile_monster_col = str_to_tile_colour(field); } + else if (key == "tile_neutral_col") + { + tile_neutral_col = + str_to_tile_colour(field); + } else if (key == "tile_friendly_col") { tile_friendly_col = |