diff options
Diffstat (limited to 'engines/tinsel/play.cpp')
-rw-r--r-- | engines/tinsel/play.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/tinsel/play.cpp b/engines/tinsel/play.cpp index b5967efa37..fd086dbcb0 100644 --- a/engines/tinsel/play.cpp +++ b/engines/tinsel/play.cpp @@ -1169,4 +1169,14 @@ void RestoreActorReels(SCNHANDLE hFilm, int actor, int x, int y) { } } +/** + * Get the actor id from a film (column 0) + */ +int ExtractActor(SCNHANDLE hFilm) { + const FILM *pFilm = (const FILM *)LockMem(hFilm); + const FREEL *pReel = &pFilm->reels[0]; + const MULTI_INIT *pmi = (const MULTI_INIT *)LockMem(FROM_LE_32(pReel->mobj)); + return (int)FROM_LE_32(pmi->mulID); +} + } // End of namespace Tinsel |