[Scummvm-git-logs] scummvm master -> a01e1cea86aa40102af4ba1ffd18c545d3b6d2bd

scemino noreply at scummvm.org
Tue Jan 14 19:52:05 UTC 2025


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:
a01e1cea86 TWP: Fix invalid rect when object has an offset


Commit: a01e1cea86aa40102af4ba1ffd18c545d3b6d2bd
    https://github.com/scummvm/scummvm/commit/a01e1cea86aa40102af4ba1ffd18c545d3b6d2bd
Author: scemino (scemino74 at gmail.com)
Date: 2025-01-14T20:38:47+01:00

Commit Message:
TWP: Fix invalid rect when object has an offset

Fix #15679

Changed paths:
    engines/twp/scenegraph.cpp


diff --git a/engines/twp/scenegraph.cpp b/engines/twp/scenegraph.cpp
index f9a77d73a81..92f54a9fbe4 100644
--- a/engines/twp/scenegraph.cpp
+++ b/engines/twp/scenegraph.cpp
@@ -246,7 +246,7 @@ void Node::draw(const Math::Matrix4 &parent) {
 }
 
 Math::Vector2d Node::getAbsPos() const {
-	return !_parent ? _pos : _parent->getAbsPos() + _pos;
+	return !_parent ? _pos : _parent->getAbsPos() + _pos + _offset;
 }
 
 Math::Matrix4 Node::getTrsf(const Math::Matrix4 &parentTrsf) {




More information about the Scummvm-git-logs mailing list