[Scummvm-git-logs] scummvm master -> 970eddc3f69a2d8f014ce92aa1d5dea43f40dc4e
mgerhardy
martin.gerhardy at gmail.com
Sun Aug 1 22:15:29 UTC 2021
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:
970eddc3f6 TWINE: fixed wrong polytab for geoscape rendering
Commit: 970eddc3f69a2d8f014ce92aa1d5dea43f40dc4e
https://github.com/scummvm/scummvm/commit/970eddc3f69a2d8f014ce92aa1d5dea43f40dc4e
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2021-08-02T00:15:22+02:00
Commit Message:
TWINE: fixed wrong polytab for geoscape rendering
Changed paths:
engines/twine/renderer/renderer.cpp
diff --git a/engines/twine/renderer/renderer.cpp b/engines/twine/renderer/renderer.cpp
index ec9117e7f2..f0034ce6e2 100644
--- a/engines/twine/renderer/renderer.cpp
+++ b/engines/twine/renderer/renderer.cpp
@@ -1550,6 +1550,7 @@ void Renderer::fillHolomapPolygons(const Vertex &vertex1, const Vertex &vertex2,
return;
}
+ int16* polygonTabPtr;
if (yBottom < yTop) {
if (yBottom < top) {
top = yBottom;
@@ -1559,6 +1560,7 @@ void Renderer::fillHolomapPolygons(const Vertex &vertex1, const Vertex &vertex2,
}
computeHolomapPolygon(yTop, vertex2.x, yBottom, vertex1.x, _holomap_polytab_1_1);
computeHolomapPolygon(yTop, (uint32)(uint16)angles2.x, yBottom, (uint32)(uint16)angles1.x, _holomap_polytab_1_2);
+ polygonTabPtr = _holomap_polytab_1_3;
} else {
if (bottom < yBottom) {
bottom = yBottom;
@@ -1568,8 +1570,9 @@ void Renderer::fillHolomapPolygons(const Vertex &vertex1, const Vertex &vertex2,
}
computeHolomapPolygon(yTop, vertex2.x, yBottom, vertex1.x, _holomap_polytab_2_1);
computeHolomapPolygon(yTop, (uint32)(uint16)angles2.x, yBottom, (uint32)(uint16)angles1.x, _holomap_polytab_2_2);
+ polygonTabPtr = _holomap_polytab_2_3;
}
- computeHolomapPolygon(yTop, (uint32)(uint16)angles2.y, yBottom, (uint32)(uint16)angles1.y, _holomap_polytab_2_3);
+ computeHolomapPolygon(yTop, (uint32)(uint16)angles2.y, yBottom, (uint32)(uint16)angles1.y, polygonTabPtr);
}
void Renderer::renderHolomapVertices(const Vertex vertexCoordinates[3], const Vertex vertexAngles[3]) {
More information about the Scummvm-git-logs
mailing list