[Scummvm-git-logs] scummvm master -> 6883e6d3cf29659966eac2fc8be17dff87baa7cb

mgerhardy martin.gerhardy at gmail.com
Thu Dec 17 17:31:42 UTC 2020


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:
6883e6d3cf TWINE: reverted parts of a previous change about sphere rendering


Commit: 6883e6d3cf29659966eac2fc8be17dff87baa7cb
    https://github.com/scummvm/scummvm/commit/6883e6d3cf29659966eac2fc8be17dff87baa7cb
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2020-12-17T18:31:23+01:00

Commit Message:
TWINE: reverted parts of a previous change about sphere rendering

this causes a regression in rendering the actor. The credits scene still looks broken...

Changed paths:
    engines/twine/renderer.cpp


diff --git a/engines/twine/renderer.cpp b/engines/twine/renderer.cpp
index 28578f7aa3..a741803006 100644
--- a/engines/twine/renderer.cpp
+++ b/engines/twine/renderer.cpp
@@ -1011,8 +1011,9 @@ uint8 *Renderer::prepareSpheres(Common::MemoryReadStream &stream, int32 &numOfPr
 	numOfPrimitives += numSpheres;
 	do {
 		CmdRenderSphere *sphere = (CmdRenderSphere *)renderBufferPtr;
+		stream.skip(1);
+		sphere->colorIndex = stream.readByte();
 		stream.skip(2);
-		sphere->colorIndex = stream.readUint16LE();
 		sphere->radius = stream.readUint16LE();
 		const int16 centerOffset = stream.readUint16LE();
 		const int16 centerIndex = centerOffset / 6;




More information about the Scummvm-git-logs mailing list