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

stevenhoefel stevenhoefel at hotmail.com
Mon Apr 3 06:54:18 CEST 2017


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:
ea989b681c DIRECTOR: Bring cast children back for D4 or higher.


Commit: ea989b681cb0ceebe3cb69b1a382362df42904cc
    https://github.com/scummvm/scummvm/commit/ea989b681cb0ceebe3cb69b1a382362df42904cc
Author: stevenhoefel (stevenhoefel at hotmail.com)
Date: 2017-04-03T14:54:07+10:00

Commit Message:
DIRECTOR: Bring cast children back for D4 or higher.

Changed paths:
    engines/director/score.cpp


diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index e31b97a..5f9b916 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -519,10 +519,14 @@ void Score::loadCastData(Common::SeekableSubReadStreamEndian &stream, uint16 id,
 		break;
 	case kCastText:
 		_loadedText->setVal(id, new TextCast(castStream, _vm->getVersion()));
+		for (uint child = 0; child < res->children.size(); child++)
+			_loadedText->getVal(id)->children.push_back(res->children[child]);
 		_castTypes[id] = kCastText;
 		break;
 	case kCastShape:
 		_loadedShapes->setVal(id, new ShapeCast(castStream, _vm->getVersion()));
+		for (uint child = 0; child < res->children.size(); child++)
+			_loadedShapes->getVal(id)->children.push_back(res->children[child]);
 		_castTypes[id] = kCastShape;
 		break;
 	case kCastButton:





More information about the Scummvm-git-logs mailing list