mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 06:41:51 +00:00
TITANIC: Maintain static movie frames on objects across saves
This commit is contained in:
parent
e29b2fc731
commit
bbd9247eb8
@ -736,6 +736,11 @@ bool CGameObject::hasActiveMovie() const {
|
||||
int CGameObject::getMovieFrame() const {
|
||||
if (_surface && _surface->_movie)
|
||||
return _surface->_movie->getFrame();
|
||||
else if (_frameNumber > 0)
|
||||
// WORKAROUND: If an object has a pending frame to be set to,
|
||||
// but the movie hasn't yet been loaded, return that frame
|
||||
return _frameNumber;
|
||||
|
||||
return _initialFrame;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user