DIRECTOR: Do not start main loop when compile only is requested

This commit is contained in:
Eugene Sandulenko committed 2020-01-09 17:11:31 +01:00
1 parent 5264fecd03
commit 625f3c1c28
1 file changed
+5 -3
+5 -3
View File
@@ -204,11 +204,13 @@ Common::Error DirectorEngine::run() {
_nextMovie.frameI = -1;
}
debugC(1, kDebugEvents, "Starting playback of score '%s'", _currentScore->getMacName().c_str());
if (!debugChannelSet(-1, kDebugLingoCompileOnly)) {
debugC(1, kDebugEvents, "Starting playback of score '%s'", _currentScore->getMacName().c_str());
_currentScore->startLoop();
_currentScore->startLoop();
debugC(1, kDebugEvents, "Finished playback of score '%s'", _currentScore->getMacName().c_str());
debugC(1, kDebugEvents, "Finished playback of score '%s'", _currentScore->getMacName().c_str());
}
if (getGameID() == GID_TESTALL) {
_nextMovie = getNextMovieFromQueue();