aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMarisa-Chan2013-11-26 15:02:38 +0000
committerMarisa-Chan2013-11-26 15:02:38 +0000
commitf3e2857cde044019dc322eba46bbdcc854fd4839 (patch)
treef46f8f4e324c84b64da58fd63d830615bca95615 /engines
parentfeabdc60179452973cc329520b3539f5dc22841a (diff)
downloadscummvm-rg350-f3e2857cde044019dc322eba46bbdcc854fd4839.tar.gz
scummvm-rg350-f3e2857cde044019dc322eba46bbdcc854fd4839.tar.bz2
scummvm-rg350-f3e2857cde044019dc322eba46bbdcc854fd4839.zip
ZVISION: Some scripts action arguments can be uppercased, make all lowercase.
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/scr_file_handling.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/zvision/scr_file_handling.cpp b/engines/zvision/scr_file_handling.cpp
index 0149347c4e..f80700cc0d 100644
--- a/engines/zvision/scr_file_handling.cpp
+++ b/engines/zvision/scr_file_handling.cpp
@@ -151,13 +151,14 @@ void ScriptManager::parseResults(Common::SeekableReadStream &stream, Common::Lis
// Loop until we find the closing brace
Common::String line = stream.readLine();
trimCommentsAndWhiteSpace(&line);
+ line.toLowercase();
// TODO: Re-order the if-then statements in order of highest occurrence
while (!stream.eos() && !line.contains('}')) {
if (line.empty()) {
line = stream.readLine();
trimCommentsAndWhiteSpace(&line);
-
+ line.toLowercase();
continue;
}
@@ -291,6 +292,7 @@ void ScriptManager::parseResults(Common::SeekableReadStream &stream, Common::Lis
line = stream.readLine();
trimCommentsAndWhiteSpace(&line);
+ line.toLowercase();
}
return;