diff options
author | Neil Moore <neil@s-z.org> | 2013-06-30 15:44:36 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-06-30 15:44:36 -0400 |
commit | cd744e6bb17fd09fae0a767007275769665cb40d (patch) | |
tree | e9a74d98d9418350c44f6de41f2e4fa0064fa44f /crawl-ref/source/mon-speak.cc | |
parent | 75d496b77f152db5011c20fc0d3964bf9f1ae9ac (diff) | |
download | crawl-ref-cd744e6bb17fd09fae0a767007275769665cb40d.tar.gz crawl-ref-cd744e6bb17fd09fae0a767007275769665cb40d.zip |
Rename a misleading function.
Except for ghouls, is_player_same_species checked *genus*, not species.
Diffstat (limited to 'crawl-ref/source/mon-speak.cc')
-rw-r--r-- | crawl-ref/source/mon-speak.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-speak.cc b/crawl-ref/source/mon-speak.cc index 54f16d5360..c46a160708 100644 --- a/crawl-ref/source/mon-speak.cc +++ b/crawl-ref/source/mon-speak.cc @@ -484,8 +484,8 @@ bool mons_speaks(monster* mons) { // Animals only look at the current player form, smart monsters at the // actual player genus. - if (is_player_same_species(mons->type, - mons_intel(mons) <= I_ANIMAL)) + if (is_player_same_genus(mons->type, + mons_intel(mons) <= I_ANIMAL)) { prefixes.push_back("related"); // maybe overkill for Beogh? } |