aboutsummaryrefslogtreecommitdiff
path: root/scumm/base-costume.cpp
diff options
context:
space:
mode:
authorMax Horn2005-03-15 21:48:06 +0000
committerMax Horn2005-03-15 21:48:06 +0000
commit6e33b3f0a7b80a5d84c277bed05ee376b4ebb517 (patch)
treef60fb92ebe795c540b443474594d0b9de6fb89c6 /scumm/base-costume.cpp
parentdeca1352524cfc4ba32fedf85b9863f119f70063 (diff)
downloadscummvm-rg350-6e33b3f0a7b80a5d84c277bed05ee376b4ebb517.tar.gz
scummvm-rg350-6e33b3f0a7b80a5d84c277bed05ee376b4ebb517.tar.bz2
scummvm-rg350-6e33b3f0a7b80a5d84c277bed05ee376b4ebb517.zip
Some cleanup/costume code unification. Note: NES costume code probably should be using subclasses; and maybe we should add AKOSLoadedCostume and NESLoadedCostume ?
svn-id: r17161
Diffstat (limited to 'scumm/base-costume.cpp')
-rw-r--r--scumm/base-costume.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/scumm/base-costume.cpp b/scumm/base-costume.cpp
index e7f13ec1ea..8c3fe18ba7 100644
--- a/scumm/base-costume.cpp
+++ b/scumm/base-costume.cpp
@@ -87,4 +87,11 @@ bool ScummEngine::isCostumeInUse(int cost) const {
return false;
}
+void ScummEngine::costumeDecodeData(Actor *a, int frame, uint usemask) {
+ if (_features & GF_NEW_COSTUMES)
+ akos_decodeData(a, frame, usemask);
+ else
+ cost_decodeData(a, frame, usemask);
+}
+
} // End of namespace Scumm