From f3e2857cde044019dc322eba46bbdcc854fd4839 Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Tue, 26 Nov 2013 15:02:38 +0000 Subject: ZVISION: Some scripts action arguments can be uppercased, make all lowercase. --- engines/zvision/scr_file_handling.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/zvision/scr_file_handling.cpp') 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; -- cgit v1.2.3