TINSEL: Move ExtractActor from scn.* to play.*

svn-id: r45399
This commit is contained in:
Max Horn 2009-10-26 10:40:35 +00:00
parent 240f230c1e
commit d19a831d29
4 changed files with 12 additions and 11 deletions

View File

@ -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

View File

@ -59,6 +59,8 @@ void NoSoundReels(void);
void SaveSoundReels(PSOUNDREELS psr);
void RestoreSoundReels(PSOUNDREELS psr);
int ExtractActor(SCNHANDLE hFilm);
} // End of namespace Tinsel
#endif

View File

@ -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

View File

@ -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