aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/tinsel/play.cpp10
-rw-r--r--engines/tinsel/play.h2
-rw-r--r--engines/tinsel/scn.cpp10
-rw-r--r--engines/tinsel/scn.h1
4 files changed, 12 insertions, 11 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
diff --git a/engines/tinsel/play.h b/engines/tinsel/play.h
index 7ac166f26a..aa622e835e 100644
--- a/engines/tinsel/play.h
+++ b/engines/tinsel/play.h
@@ -59,6 +59,8 @@ void NoSoundReels(void);
void SaveSoundReels(PSOUNDREELS psr);
void RestoreSoundReels(PSOUNDREELS psr);
+int ExtractActor(SCNHANDLE hFilm);
+
} // End of namespace Tinsel
#endif
diff --git a/engines/tinsel/scn.cpp b/engines/tinsel/scn.cpp
index 6672b35b27..0c89819ca0 100644
--- a/engines/tinsel/scn.cpp
+++ b/engines/tinsel/scn.cpp
@@ -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
diff --git a/engines/tinsel/scn.h b/engines/tinsel/scn.h
index e48f890dcd..c9cafd9eea 100644
--- a/engines/tinsel/scn.h
+++ b/engines/tinsel/scn.h
@@ -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