Skip to content

Commit

Permalink
ZVISION: Some scripts action arguments can be uppercased, make all lo…
Browse files Browse the repository at this point in the history
…wercase.
  • Loading branch information
Marisa-Chan committed Nov 26, 2013
1 parent feabdc6 commit f3e2857
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/zvision/scr_file_handling.cpp
Expand Up @@ -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;
}

Expand Down Expand Up @@ -291,6 +292,7 @@ void ScriptManager::parseResults(Common::SeekableReadStream &stream, Common::Lis

line = stream.readLine();
trimCommentsAndWhiteSpace(&line);
line.toLowercase();
}

return;
Expand Down

0 comments on commit f3e2857

Please sign in to comment.