diff options
| author | Matthew Hoops | 2011-09-30 20:24:28 -0400 | 
|---|---|---|
| committer | Matthew Hoops | 2011-09-30 20:24:28 -0400 | 
| commit | ad784cd5e8f2a4a40a6ebc146dc80dcba477b28e (patch) | |
| tree | 7c1571548c386359623fdc5f5e4983062da9e3c8 | |
| parent | 7227af4676aa465982d94e0e04c52b6e09361b29 (diff) | |
| download | scummvm-rg350-ad784cd5e8f2a4a40a6ebc146dc80dcba477b28e.tar.gz scummvm-rg350-ad784cd5e8f2a4a40a6ebc146dc80dcba477b28e.tar.bz2 scummvm-rg350-ad784cd5e8f2a4a40a6ebc146dc80dcba477b28e.zip | |
PEGASUS: Fix movie segment looping
Not the best way to handle it, but it works for now
| -rwxr-xr-x | engines/pegasus/movie.cpp | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/engines/pegasus/movie.cpp b/engines/pegasus/movie.cpp index fa0cb95dff..bd81f375a4 100755 --- a/engines/pegasus/movie.cpp +++ b/engines/pegasus/movie.cpp @@ -192,8 +192,14 @@ void Movie::checkCallBacks() {  		// Stop the video when we go past our end  		// TODO: Check if this should really be -1 -		if (actualTime >= stopTime - 1) -			stop(); +		if (actualTime >= stopTime - 1) { +			// HACK: Handle looping here as well +			// Should be handled like the rest of TimeBases +			if (getFlags() & kLoopTimeBase) +				setTime(_startTime, _startScale); +			else +				stop(); +		}  	}  } | 
