[Scummvm-git-logs] scummvm master -> 12a0a1cd80a90d64d933a4d73d2eddb00eac0737
mgerhardy
noreply at scummvm.org
Tue Feb 15 06:22:43 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
12a0a1cd80 TWINE: fixed bug #13167 (Doors are not working sometimes)
Commit: 12a0a1cd80a90d64d933a4d73d2eddb00eac0737
https://github.com/scummvm/scummvm/commit/12a0a1cd80a90d64d933a4d73d2eddb00eac0737
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2022-02-15T07:22:29+01:00
Commit Message:
TWINE: fixed bug #13167 (Doors are not working sometimes)
the problem was that in the scene mentioned in the bug ticket the actor 3 was the lift downwards. This used
mGOTO_POINT_3D opcode - which modifies _spriteActorRotation. Now entering scene 49 again did not reset the
actor variable _spriteActorRotation properly - and the door has the same actor id as the lift that went
downwards
Changed paths:
engines/twine/scene/actor.cpp
diff --git a/engines/twine/scene/actor.cpp b/engines/twine/scene/actor.cpp
index 4759562d082..5ed220e2630 100644
--- a/engines/twine/scene/actor.cpp
+++ b/engines/twine/scene/actor.cpp
@@ -265,6 +265,7 @@ void Actor::resetActor(int16 actorIdx) {
actor->_body = BodyType::btNormal;
actor->_anim = AnimationTypes::kStanding;
actor->_pos = IVec3(0, -1, 0);
+ actor->_spriteActorRotation = 0;
actor->_boudingBox = BoundingBox();
More information about the Scummvm-git-logs
mailing list