From c13f6b9cbb10fc155d84bdbf454aeb35a4041683 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 28 Mar 2005 20:34:18 +0000 Subject: Always check hasManyDirections for AKOS costumes -- this could cause regressions with HE games (or fix something, who knows?) svn-id: r17279 --- scumm/actor.cpp | 4 +--- scumm/base-costume.h | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'scumm') 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; } }; -- cgit v1.2.3