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/wiz-mon.cc | |
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/wiz-mon.cc')
-rw-r--r-- | crawl-ref/source/wiz-mon.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/wiz-mon.cc b/crawl-ref/source/wiz-mon.cc index 853f2e5af7..2d7c0dd881 100644 --- a/crawl-ref/source/wiz-mon.cc +++ b/crawl-ref/source/wiz-mon.cc @@ -191,7 +191,7 @@ void wizard_create_spec_monster_name() string newerr; // Try for a partial match, but not if the user accidentally entered // only a few letters. - monster_type partial = get_monster_by_name(specs); + monster_type partial = get_monster_by_name(specs, true); if (strlen(specs) >= 3 && partial != MONS_NO_MONSTER) { mlist.clear(); |