[Scummvm-git-logs] scummvm master -> 1782eb827e1d3a3c027132963b3bdc631c9a2380

mgerhardy martin.gerhardy at gmail.com
Sun Jan 24 14:32:12 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:
1782eb827e TWINE: use int16 instead of short


Commit: 1782eb827e1d3a3c027132963b3bdc631c9a2380
    https://github.com/scummvm/scummvm/commit/1782eb827e1d3a3c027132963b3bdc631c9a2380
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2021-01-24T15:31:54+01:00

Commit Message:
TWINE: use int16 instead of short

Changed paths:
    engines/twine/holomap.cpp


diff --git a/engines/twine/holomap.cpp b/engines/twine/holomap.cpp
index 1ed9bf1558..51275c0184 100644
--- a/engines/twine/holomap.cpp
+++ b/engines/twine/holomap.cpp
@@ -126,11 +126,11 @@ void Holomap::prepareHolomapSurface() {
 			_engine->_renderer->projectPositionOnScreen(destX, destY, destZ);
 			_projectedSurfacePositions[projectedIndex].x = _engine->_renderer->projPosX;
 			_projectedSurfacePositions[projectedIndex].y = _engine->_renderer->projPosY;
-			_projectedSurfacePositions[projectedIndex].unk1 = _engine->_screens->crossDot(0, 0xffff, 0x3ff, rotation);
+			_projectedSurfacePositions[projectedIndex].unk1 = _engine->_screens->crossDot(0, 0xffff, ANGLE_360 - 1, rotation);
 			if (angle == ANGLE_90) {
 				_projectedSurfacePositions[projectedIndex].unk2 = 0xffff;
 			} else {
-				_projectedSurfacePositions[projectedIndex].unk2 = (short)(((angle + ANGLE_90) * ANGLE_90) / 2);
+				_projectedSurfacePositions[projectedIndex].unk2 = (int16)(((angle + ANGLE_90) * ANGLE_90) / 2);
 			}
 			rotation = rotation + ANGLE_11_25;
 			++projectedIndex;
@@ -146,7 +146,7 @@ void Holomap::prepareHolomapSurface() {
 		if (angle == ANGLE_90) {
 			_projectedSurfacePositions[projectedIndex].unk2 = 0xffff;
 		} else {
-			_projectedSurfacePositions[projectedIndex].unk2 = (short)(((angle + ANGLE_90) * ANGLE_90) / 2);
+			_projectedSurfacePositions[projectedIndex].unk2 = (int16)(((angle + ANGLE_90) * ANGLE_90) / 2);
 		}
 		++projectedIndex;
 	}




More information about the Scummvm-git-logs mailing list