mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
TINSEL: Move ExtractActor from scn.* to play.*
svn-id: r45399
This commit is contained in:
parent
240f230c1e
commit
d19a831d29
@ -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
|
||||
|
@ -59,6 +59,8 @@ void NoSoundReels(void);
|
||||
void SaveSoundReels(PSOUNDREELS psr);
|
||||
void RestoreSoundReels(PSOUNDREELS psr);
|
||||
|
||||
int ExtractActor(SCNHANDLE hFilm);
|
||||
|
||||
} // End of namespace Tinsel
|
||||
|
||||
#endif
|
||||
|
@ -72,14 +72,4 @@ byte *FindChunk(SCNHANDLE handle, uint32 chunk) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
@ -80,7 +80,6 @@ namespace Tinsel {
|
||||
#define CHUNK_GRAB_NAME 0x33340100L
|
||||
|
||||
byte *FindChunk(SCNHANDLE handle, uint32 chunk);
|
||||
int ExtractActor(SCNHANDLE hFilm);
|
||||
|
||||
} // End of namespace Tinsel
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user