diff options
author | Marisa-Chan | 2013-11-26 15:02:38 +0000 |
---|---|---|
committer | Marisa-Chan | 2013-11-26 15:02:38 +0000 |
commit | f3e2857cde044019dc322eba46bbdcc854fd4839 (patch) | |
tree | f46f8f4e324c84b64da58fd63d830615bca95615 /engines | |
parent | feabdc60179452973cc329520b3539f5dc22841a (diff) | |
download | scummvm-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.cpp | 4 |
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; |