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

aquadran noreply at scummvm.org
Sat Oct 26 15:51:38 UTC 2024


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:
cb643ba38d WINTERMUTE: Small cleanup


Commit: cb643ba38de3ec3f1c3fef8ce2038e99d51069ff
    https://github.com/scummvm/scummvm/commit/cb643ba38de3ec3f1c3fef8ce2038e99d51069ff
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2024-10-26T17:51:34+02:00

Commit Message:
WINTERMUTE: Small cleanup

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 fd734e6ccf8..d055b6866b7 100644
--- a/engines/wintermute/base/gfx/3dmesh.cpp
+++ b/engines/wintermute/base/gfx/3dmesh.cpp
@@ -100,21 +100,21 @@ bool Mesh3DS::fillVertexBuffer(uint32 color) {
 
 	for (int i = 0; i < _numFaces; i++) {
 		for (int j = 0; j < 3; j++) {
-			int iOutVert = i * 3 + j;
-			int iVertex = _faces[i]._vertices[j];
+			int outVert = i * 3 + j;
+			int vertex = _faces[i]._vertices[j];
 
-			verts[iOutVert]._x  = _vertices[iVertex]._pos._x;
-			verts[iOutVert]._y  = _vertices[iVertex]._pos._y;
-			verts[iOutVert]._z  = _vertices[iVertex]._pos._z;
+			verts[outVert]._x  = _vertices[vertex]._pos._x;
+			verts[outVert]._y  = _vertices[vertex]._pos._y;
+			verts[outVert]._z  = _vertices[vertex]._pos._z;
 
-			verts[iOutVert]._nx = _faces[i]._normals[j]._x;
-			verts[iOutVert]._ny = _faces[i]._normals[j]._y;
-			verts[iOutVert]._nz = _faces[i]._normals[j]._z;
+			verts[outVert]._nx = _faces[i]._normals[j]._x;
+			verts[outVert]._ny = _faces[i]._normals[j]._y;
+			verts[outVert]._nz = _faces[i]._normals[j]._z;
 
-			verts[iOutVert]._r = RGBCOLGetR(color) / 255.0f;
-			verts[iOutVert]._g = RGBCOLGetG(color) / 255.0f;
-			verts[iOutVert]._b = RGBCOLGetB(color) / 255.0f;
-			verts[iOutVert]._a = RGBCOLGetA(color) / 255.0f;
+			verts[outVert]._r = RGBCOLGetR(color) / 255.0f;
+			verts[outVert]._g = RGBCOLGetG(color) / 255.0f;
+			verts[outVert]._b = RGBCOLGetB(color) / 255.0f;
+			verts[outVert]._a = RGBCOLGetA(color) / 255.0f;
 		}
 	}
 




More information about the Scummvm-git-logs mailing list