mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
SCUMM: (LOOM) - fix bug no. 13373 (Rusty's ghost can disappear completely)
This bug can only happen if Actor::setActorWalkSpeed() is called on a moving actor. But at least this is one such occasion... The problem is that calcMovementFactor() gets called from common code here, so it has to be made virtual. Otherwise it will not call the correct version of the function for v3.
This commit is contained in:
parent
947f7afd6b
commit
7f3ea3074f
@ -206,7 +206,7 @@ public:
|
||||
void putActor(int x, int y, int room);
|
||||
void setActorWalkSpeed(uint newSpeedX, uint newSpeedY);
|
||||
protected:
|
||||
int calcMovementFactor(const Common::Point& next);
|
||||
virtual int calcMovementFactor(const Common::Point& next);
|
||||
int actorWalkStep();
|
||||
int remapDirection(int dir, bool is_walking);
|
||||
virtual void setupActorScale();
|
||||
@ -336,7 +336,7 @@ public:
|
||||
void saveLoadWithSerializer(Common::Serializer &ser) override;
|
||||
|
||||
protected:
|
||||
int calcMovementFactor(const Common::Point& next);
|
||||
int calcMovementFactor(const Common::Point& next) override;
|
||||
int actorWalkStep();
|
||||
|
||||
void setupActorScale() override;
|
||||
|
Loading…
Reference in New Issue
Block a user