diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-11 15:15:23 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-11 15:15:23 +0000 |
commit | 849424e409cebbd7f4bed89f3e229e8dc6803eeb (patch) | |
tree | 1bea8762abfadf3840785e3c34c2ceab8c083ecb /crawl-ref/source/direct.cc | |
parent | f51fc3911ca9e3f26839513f9ea39a3484f15633 (diff) | |
download | crawl-ref-849424e409cebbd7f4bed89f3e229e8dc6803eeb.tar.gz crawl-ref-849424e409cebbd7f4bed89f3e229e8dc6803eeb.zip |
[1808191] Fixed truncated imp messages.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2429 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/direct.cc')
-rw-r--r-- | crawl-ref/source/direct.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/direct.cc b/crawl-ref/source/direct.cc index 40f16abf09..5c98b25623 100644 --- a/crawl-ref/source/direct.cc +++ b/crawl-ref/source/direct.cc @@ -1857,13 +1857,13 @@ static void describe_monster(const monsters *mon) if (mon->behaviour == BEH_SLEEP) { mprf(MSGCH_EXAMINE, "%s appears to be resting.", - mons_pronoun(mon->type, PRONOUN_CAP)); + mon->pronoun(PRONOUN_CAP).c_str()); } // Applies to both friendlies and hostiles else if (mon->behaviour == BEH_FLEE) { mprf(MSGCH_EXAMINE, "%s is retreating.", - mons_pronoun(mon->type, PRONOUN_CAP)); + mon->pronoun(PRONOUN_CAP).c_str()); } // hostile with target != you else if (!mons_friendly(mon) && mon->foe != MHITYOU) @@ -1873,17 +1873,17 @@ static void describe_monster(const monsters *mon) if (!testbits(mon->flags, MF_BATTY)) { mprf(MSGCH_EXAMINE, "%s doesn't appear to have noticed you.", - mons_pronoun(mon->type, PRONOUN_CAP)); + mon->pronoun(PRONOUN_CAP).c_str()); } } } if (mon->attitude == ATT_FRIENDLY) mprf(MSGCH_EXAMINE, "%s is friendly.", - mons_pronoun(mon->type, PRONOUN_CAP)); + mon->pronoun(PRONOUN_CAP).c_str()); else if (mon->attitude == ATT_NEUTRAL) mprf(MSGCH_EXAMINE, "%s is indifferent to you.", - mons_pronoun(mon->type, PRONOUN_CAP)); + mon->pronoun(PRONOUN_CAP).c_str()); std::string desc = ""; std::string last_desc = ""; @@ -1915,7 +1915,7 @@ static void describe_monster(const monsters *mon) if (!desc.empty()) { - text = mons_pronoun(mon->type, PRONOUN_CAP); + text = mon->pronoun(PRONOUN_CAP); text += " is "; text += desc; text += "."; |