diff options
author | Max Horn | 2005-03-15 21:48:06 +0000 |
---|---|---|
committer | Max Horn | 2005-03-15 21:48:06 +0000 |
commit | 6e33b3f0a7b80a5d84c277bed05ee376b4ebb517 (patch) | |
tree | f60fb92ebe795c540b443474594d0b9de6fb89c6 /scumm/base-costume.cpp | |
parent | deca1352524cfc4ba32fedf85b9863f119f70063 (diff) | |
download | scummvm-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.cpp | 7 |
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 |