TITANIC: Maintain static movie frames on objects across saves
This commit is contained in:
parent
e29b2fc731
commit
bbd9247eb8
1 changed files with 5 additions and 0 deletions
|
@ -736,6 +736,11 @@ bool CGameObject::hasActiveMovie() const {
|
||||||
int CGameObject::getMovieFrame() const {
|
int CGameObject::getMovieFrame() const {
|
||||||
if (_surface && _surface->_movie)
|
if (_surface && _surface->_movie)
|
||||||
return _surface->_movie->getFrame();
|
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;
|
return _initialFrame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue