mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
TWINE: fixed wrong polytab for geoscape rendering
This commit is contained in:
1 parent
b43d66b7f2
commit
970eddc3f6
1 file changed
+4
-1
@@ -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]) {
|
||||
|
||||
Reference in new issue
Block a user