[Scummvm-git-logs] scummvm master -> df4cbe8ab02c43d26355d9a6ebc6ac04bd5279bc

rvanlaar roland at rolandvanlaar.nl
Fri Jul 24 20:47:31 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
df4cbe8ab0 DIRECTOR: rename variable to split char


Commit: df4cbe8ab02c43d26355d9a6ebc6ac04bd5279bc
    https://github.com/scummvm/scummvm/commit/df4cbe8ab02c43d26355d9a6ebc6ac04bd5279bc
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2020-07-24T22:45:41+02:00

Commit Message:
DIRECTOR: rename variable to split char

The ':' was replaced in favor of '@' in a later iteration.
This commit reflects that by updating the variables names.

Changed paths:
    engines/director/detection.cpp


diff --git a/engines/director/detection.cpp b/engines/director/detection.cpp
index 18950a95e5..f93a05d71c 100644
--- a/engines/director/detection.cpp
+++ b/engines/director/detection.cpp
@@ -72,9 +72,9 @@ StartMovie DirectorEngine::getStartMovie() const {
 
 	if (ConfMan.hasKey("start_movie")) {
 		Common::String option = ConfMan.get("start_movie");
-		int colonPos = option.findLastOf("@");
-		startMovie.startMovie = option.substr(0, colonPos);
-		Common::String tail = option.substr(colonPos + 1, option.size());
+		int atPos = option.findLastOf("@");
+		startMovie.startMovie = option.substr(0, atPos);
+		Common::String tail = option.substr(atPos + 1, option.size());
 		if (tail.size() > 0)
 			startMovie.startFrame = atoi(tail.c_str());
 	}




More information about the Scummvm-git-logs mailing list