diff options
author | Max Horn | 2005-03-28 20:34:18 +0000 |
---|---|---|
committer | Max Horn | 2005-03-28 20:34:18 +0000 |
commit | c13f6b9cbb10fc155d84bdbf454aeb35a4041683 (patch) | |
tree | 3564bb983940c1a9a04621fead13d4163d29a278 /scumm | |
parent | 9ca1a888032be5b7ccc14b347f6a85ac8040e6c3 (diff) | |
download | scummvm-rg350-c13f6b9cbb10fc155d84bdbf454aeb35a4041683.tar.gz scummvm-rg350-c13f6b9cbb10fc155d84bdbf454aeb35a4041683.tar.bz2 scummvm-rg350-c13f6b9cbb10fc155d84bdbf454aeb35a4041683.zip |
Always check hasManyDirections for AKOS costumes -- this could cause regressions with HE games (or fix something, who knows?)
svn-id: r17279
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/actor.cpp | 4 | ||||
-rw-r--r-- | scumm/base-costume.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp index cf1691279c..613567e868 100644 --- a/scumm/actor.cpp +++ b/scumm/actor.cpp @@ -327,9 +327,7 @@ int Actor::updateActorDirection(bool is_walking) { if ((_vm->_version == 6) && _ignoreTurns) return _facing; - if (_vm->_version >= 7) { - dirType = ((AkosCostumeLoader *)_vm->_costumeLoader)->hasManyDirections(_costume); - } + dirType = _vm->_costumeLoader->hasManyDirections(_costume); from = toSimpleDir(dirType, _facing); dir = remapDirection(_targetFacing, is_walking); diff --git a/scumm/base-costume.h b/scumm/base-costume.h index b54a3f84de..51d9804b46 100644 --- a/scumm/base-costume.h +++ b/scumm/base-costume.h @@ -57,6 +57,8 @@ public: virtual void loadCostume(int id) = 0; virtual byte increaseAnims(Actor *a) = 0; virtual void costumeDecodeData(Actor *a, int frame, uint usemask) = 0; + + bool hasManyDirections(int id) { return false; } }; |