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

aquadran noreply at scummvm.org
Tue Jul 22 18:48:58 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
dc8b5dc392 WINTERMUTE: Match with declaration types in 3dmesh.h


Commit: dc8b5dc392f7953204666667a77905970cc137c3
    https://github.com/scummvm/scummvm/commit/dc8b5dc392f7953204666667a77905970cc137c3
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2025-07-22T20:48:53+02:00

Commit Message:
WINTERMUTE: Match with declaration types in 3dmesh.h

Changed paths:
    engines/wintermute/base/gfx/3dmesh.cpp


diff --git a/engines/wintermute/base/gfx/3dmesh.cpp b/engines/wintermute/base/gfx/3dmesh.cpp
index d055b6866b7..7f7dfe5a924 100644
--- a/engines/wintermute/base/gfx/3dmesh.cpp
+++ b/engines/wintermute/base/gfx/3dmesh.cpp
@@ -127,13 +127,13 @@ bool Mesh3DS::fillVertexBuffer(uint32 color) {
 //////////////////////////////////////////////////////////////////////////
 void Mesh3DS::computeNormals() {
 	DXVector3 *normals = new DXVector3[_numVertices];
-	for (int i = 0; i < _numVertices; ++i) {
+	for (uint32 i = 0; i < _numVertices; i++) {
 		normals[i]._x = 0.0f;
 		normals[i]._y = 0.0f;
 		normals[i]._z = 0.0f;
 	}
 
-	for (int i = 0; i < _numFaces; ++i) {
+	for (uint32 i = 0; i < _numFaces; i++) {
 		uint16 a = _faces[i]._vertices[0];
 		uint16 b = _faces[i]._vertices[1];
 		uint16 c = _faces[i]._vertices[2];
@@ -154,8 +154,8 @@ void Mesh3DS::computeNormals() {
 	}
 
 	// Assign the newly computed normals back to the vertices
-	for (int i = 0; i < _numFaces; ++i) {
-		for (int j = 0; j < 3; j++) {
+	for (uint32 i = 0; i < _numFaces; i++) {
+		for (uint32 j = 0; j < 3; j++) {
 			DXVec3Normalize(&_faces[i]._normals[j], &normals[_faces[i]._vertices[j]]);
 			//_faces[i]._normals[j] = normals[_faces[i]._vertices[j]];
 		}




More information about the Scummvm-git-logs mailing list