summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-04-08 22:39:38 +0200
committerTreeki <treeki@gmail.com>2013-04-08 22:39:38 +0200
commit14477e22b48ff6deaa06e6596eb21acdd59a4e90 (patch)
tree085daa96dbd20cb9091a4a761400731a53c24a4e /src
parent34c977fe4a91e14b32d974fd1ec7c55aebeda0f8 (diff)
downloadkamek-14477e22b48ff6deaa06e6596eb21acdd59a4e90.tar.gz
kamek-14477e22b48ff6deaa06e6596eb21acdd59a4e90.zip
remove hyphens from world names in completion messages
Diffstat (limited to 'src')
-rw-r--r--src/koopatlas/core.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/koopatlas/core.cpp b/src/koopatlas/core.cpp
index 613bb80..c86c696 100644
--- a/src/koopatlas/core.cpp
+++ b/src/koopatlas/core.cpp
@@ -1121,8 +1121,11 @@ void dScKoopatlas_c::executeState_CompletionMsg() {
text[pos++] = ' ';
- while (*title)
- text[pos++] = *(title++);
+ while (*title) {
+ char chr = *(title++);
+ if (chr != '-')
+ text[pos++] = chr;
+ }
text[pos++] = '!';
text[pos++] = 0;