diff options
author | Neil Moore <neil@s-z.org> | 2014-05-12 18:00:32 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-05-12 18:11:14 -0400 |
commit | 9bc6d1f085097d001f0ff31f9bb900bb71957212 (patch) | |
tree | ca6c52fa82eac19c98baec7ce93b557e4d5be22e /crawl-ref/source/lang-fake.cc | |
parent | bca6d2d0ab66b008f7f1664769ba4a3a655a3444 (diff) | |
download | crawl-ref-9bc6d1f085097d001f0ff31f9bb900bb71957212.tar.gz crawl-ref-9bc6d1f085097d001f0ff31f9bb900bb71957212.zip |
Formatting fixes (add braces).
This fixes all the instances caught by unbrace.
Diffstat (limited to 'crawl-ref/source/lang-fake.cc')
-rw-r--r-- | crawl-ref/source/lang-fake.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/lang-fake.cc b/crawl-ref/source/lang-fake.cc index 33b06f0d80..6b44d41d37 100644 --- a/crawl-ref/source/lang-fake.cc +++ b/crawl-ref/source/lang-fake.cc @@ -339,6 +339,7 @@ static void _german(string &txt) */ for (unsigned int i = 0; i < txt.length(); i++) if (txt[i] == 'c' || txt[i] == 'C') + { switch (tolower(txt[i+1])) { case 'h': case 'z': @@ -349,6 +350,7 @@ static void _german(string &txt) default: txt[i] = isalower(txt[i]) ? 'k' : 'K'; } + } /* There will be growing publik enthusiasm in the sekond year when the troublesome "ph" will be replaced with "f". This will make words like @@ -381,7 +383,9 @@ static void _german(string &txt) if (!isaalpha(txt[i-1]) || !isaalpha(txt[i-2]) || !isaalpha(txt[i-3])) + { continue; + } txt.erase(i, 1); } /* |