diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-05-13 18:47:36 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-05-13 18:47:36 -0400 |
commit | 4b79c22885a32b50b9aa0846eb89961543b5a59e (patch) | |
tree | 462f3aa3bc54370137fd98e205905edc479d9241 /src/map/battle.cpp | |
parent | ceb7acf8291867d56b53c3f696a39e91fd79da59 (diff) | |
parent | 6707cc577dcd2ec06d6936036b93d75cda71c6b3 (diff) | |
download | tmwa-4b79c22885a32b50b9aa0846eb89961543b5a59e.tar.gz tmwa-4b79c22885a32b50b9aa0846eb89961543b5a59e.tar.bz2 tmwa-4b79c22885a32b50b9aa0846eb89961543b5a59e.tar.xz tmwa-4b79c22885a32b50b9aa0846eb89961543b5a59e.zip |
Merge pull request #224 from mekolat/npctalk
Npctalk modifications
Diffstat (limited to 'src/map/battle.cpp')
-rw-r--r-- | src/map/battle.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/battle.cpp b/src/map/battle.cpp index 031b79d..df01a5c 100644 --- a/src/map/battle.cpp +++ b/src/map/battle.cpp @@ -197,7 +197,12 @@ VString<23> battle_get_name(dumb_ptr<block_list> bl) name = bl->is_player()->status_key.name.to__actual(); break; case BL::NPC: - name = bl->is_npc()->name; + { + name = bl->is_npc()->name; + // [fate] elim hashed out/invisible names for the client + auto it = std::find(name.begin(), name.end(), '#'); + name = name.xislice_h(it); + } break; case BL::MOB: name = bl->is_mob()->name; |