diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-06-09 12:38:46 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-06-09 12:48:20 +0200 |
commit | bc69ec7aa12136be619e079506e37f48d473699d (patch) | |
tree | e943084913bb2c902f4b067795b4a56898073ac6 /crawl-ref/source/mon-util.h | |
parent | d78cc4cf0831922a137983eaa076743fabcdea8b (diff) | |
download | crawl-ref-bc69ec7aa12136be619e079506e37f48d473699d.tar.gz crawl-ref-bc69ec7aa12136be619e079506e37f48d473699d.zip |
Reverse the argument of get_monster_by_name().
The default, substring match, was totally unintuitive and broken.
Only one place is actually changed, something about shapeshifters.
Diffstat (limited to 'crawl-ref/source/mon-util.h')
-rw-r--r-- | crawl-ref/source/mon-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.h b/crawl-ref/source/mon-util.h index d8184cba32..8aaca46339 100644 --- a/crawl-ref/source/mon-util.h +++ b/crawl-ref/source/mon-util.h @@ -400,7 +400,7 @@ monster_type draconian_colour_by_name(const string &colour); monster_type random_monster_at_grid(const coord_def& p, bool species = false); void init_mon_name_cache(); -monster_type get_monster_by_name(string name, bool exact = false); +monster_type get_monster_by_name(string name, bool substring = false); string do_mon_str_replacements(const string &msg, const monster* mons, int s_type = -1); |