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

neuromancer noreply at scummvm.org
Mon Dec 9 06:55:27 UTC 2024


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:
b7ddba2860 FREESCAPE: fixed null sizes in some planar object from eclipse


Commit: b7ddba286018ca726c012d6b83882a637ba07937
    https://github.com/scummvm/scummvm/commit/b7ddba286018ca726c012d6b83882a637ba07937
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2024-12-09T07:57:24+01:00

Commit Message:
FREESCAPE: fixed null sizes in some planar object from eclipse

Changed paths:
    engines/freescape/games/eclipse/eclipse.cpp


diff --git a/engines/freescape/games/eclipse/eclipse.cpp b/engines/freescape/games/eclipse/eclipse.cpp
index cfb5b80cb98..a7c77b2fca5 100644
--- a/engines/freescape/games/eclipse/eclipse.cpp
+++ b/engines/freescape/games/eclipse/eclipse.cpp
@@ -124,6 +124,20 @@ void EclipseEngine::loadAssets() {
 	if (!isDemo() && !isEclipse2()) {
 		_areaMap[51]->addFloor();
 		_areaMap[51]->_paperColor = 1;
+
+		// Workaround for fixing some planar objects from area 9 that have null size
+		Object *obj = nullptr;
+		obj = _areaMap[9]->objectWithID(7);
+		assert(obj);
+		obj->_size = 32 * Math::Vector3d(3, 0, 2);
+
+		obj = _areaMap[9]->objectWithID(8);
+		assert(obj);
+		obj->_size = 32 * Math::Vector3d(3, 0, 2);
+
+		obj = _areaMap[9]->objectWithID(9);
+		assert(obj);
+		obj->_size = 32 * Math::Vector3d(3, 0, 2);
 	}
 }
 




More information about the Scummvm-git-logs mailing list