[Scummvm-git-logs] scummvm master -> 10bf056008470baf2d07b0fa94dbd98860456168

mgerhardy noreply at scummvm.org
Sun Jul 10 20:53:48 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:
10bf056008 TWINE: added todo comment about the tank-not-moving hack


Commit: 10bf056008470baf2d07b0fa94dbd98860456168
    https://github.com/scummvm/scummvm/commit/10bf056008470baf2d07b0fa94dbd98860456168
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2022-07-10T22:53:42+02:00

Commit Message:
TWINE: added todo comment about the tank-not-moving hack

see https://bugs.scummvm.org/ticket/13177

Changed paths:
    engines/twine/scene/animations.cpp


diff --git a/engines/twine/scene/animations.cpp b/engines/twine/scene/animations.cpp
index dd06eb73917..26b1137a2de 100644
--- a/engines/twine/scene/animations.cpp
+++ b/engines/twine/scene/animations.cpp
@@ -668,6 +668,8 @@ void Animations::doAnim(int32 actorIdx) {
 
 		collision->_causeActorDamage = 0;
 
+		// TODO: hack to fix tank-not-moving bug https://bugs.scummvm.org/ticket/13177
+		// remove processActorSave
 		const IVec3 processActorSave = processActor;
 		collision->setCollisionPos(processActor);
 
@@ -684,6 +686,7 @@ void Animations::doAnim(int32 actorIdx) {
 			collision->doCornerReajust(actor, actor->_boundingBox.maxs.x, actor->_boundingBox.mins.y, actor->_boundingBox.maxs.z, 4);
 			collision->doCornerReajust(actor, actor->_boundingBox.mins.x, actor->_boundingBox.mins.y, actor->_boundingBox.maxs.z, 8);
 		}
+		// TODO: hack to fix tank-not-moving bug https://bugs.scummvm.org/ticket/13177
 		processActor = processActorSave;
 
 		// process wall hit while running




More information about the Scummvm-git-logs mailing list