aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
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
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')
-rw-r--r--engines/sword1/control.cpp9
-rw-r--r--engines/sword1/staticres.cpp2
2 files changed, 2 insertions, 9 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')) ||
diff --git a/engines/sword1/staticres.cpp b/engines/sword1/staticres.cpp
index 366e2c7608..08e6a108c4 100644
--- a/engines/sword1/staticres.cpp
+++ b/engines/sword1/staticres.cpp
@@ -5158,7 +5158,7 @@ const FxDef Sound::_fxList[312] = {
},
},
//------------------------
- // 198 Ambient sound for Montfauçon Square
+ // 198 Ambient sound for Montfaucon Square
{
FX_MONTAMB, // sampleId
FX_LOOP, // type