aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/control.cpp
diff options
context:
space:
mode:
authorMax Horn2007-07-01 12:47:07 +0000
committerMax Horn2007-07-01 12:47:07 +0000
commite2ad271bd854369b437524cde60bfcb462225b82 (patch)
treed939d2be1b221b1ef57e58b24d1d4cc45062f5b6 /engines/sword1/control.cpp
parentd2189e7111fc4aab508395ed136d094e8893717b (diff)
downloadscummvm-rg350-e2ad271bd854369b437524cde60bfcb462225b82.tar.gz
scummvm-rg350-e2ad271bd854369b437524cde60bfcb462225b82.tar.bz2
scummvm-rg350-e2ad271bd854369b437524cde60bfcb462225b82.zip
Removing non-ASCII chars from source code
svn-id: r27818
Diffstat (limited to 'engines/sword1/control.cpp')
-rw-r--r--engines/sword1/control.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp
index 1ebfaedb2e..c5b968aabe 100644
--- a/engines/sword1/control.cpp
+++ b/engines/sword1/control.cpp
@@ -650,14 +650,7 @@ bool Control::getConfirm(const uint8 *title) {
}
bool Control::keyAccepted(uint16 ascii) {
- // this routine needs changes for Czech keys... No idea how to do that, though.
- // FIXME: It is not a good idea to put non-ASCII chars into a C source file,
- // since there is no way to specify which encoding you are using.
- // It is better to encode them as hex/octal. Although in this particular
- // case, it seems questionable to do this at all, since we currently
- // do not at all specify which encoding keyboard events use, so this
- // check here is probably not portable anyway...
- static const char allowedSpecials[] = "éèáàúùäöüÄÖÜß,.:-()?! \"\'";
+ static const char allowedSpecials[] = ",.:-()?! \"\'";
if (((ascii >= 'A') && (ascii <= 'Z')) ||
((ascii >= 'a') && (ascii <= 'z')) ||
((ascii >= '0') && (ascii <= '9')) ||