From 14477e22b48ff6deaa06e6596eb21acdd59a4e90 Mon Sep 17 00:00:00 2001 From: Treeki Date: Mon, 8 Apr 2013 22:39:38 +0200 Subject: remove hyphens from world names in completion messages --- src/koopatlas/core.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/koopatlas/core.cpp') 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; -- cgit v1.2.3