diff mm7_4.cpp @ 1281:21a46b38ca24

m
author Ritor1
date Sat, 15 Jun 2013 09:55:07 +0600
parents 8ee5f1554b64
children 8a196c858180
line wrap: on
line diff
--- a/mm7_4.cpp	Mon Jun 10 00:57:51 2013 +0600
+++ b/mm7_4.cpp	Sat Jun 15 09:55:07 2013 +0600
@@ -4516,29 +4516,29 @@
                 v101 = 2 * stru_F8A590._viewport_space_y;
                 while ( 1 )
                 {
-                  a1 = *(__int16 *)((char *)stru_F8A590.array_18 + v12);
+                  a1 = *(__int16 *)((char *)stru_F8A590.viewport_left_side + v12);
                   sub_4AE313(a1, result, &stru_F81018.field_0);
                   if ( LOBYTE(viewparams->field_20) )
                   {
                     v15 = v95 * (v12 - pBLVRenderParams->uViewportY);
                     v119 = &pBLVRenderParams->pTargetZBuffer[2
-                                                          * (*(__int16 *)((char *)stru_F8A590.array_18 + v12)
+                                                          * (*(__int16 *)((char *)stru_F8A590.viewport_left_side + v12)
                                                            + 320 * (v12 - pBLVRenderParams->uViewportY))
                                                           - pBLVRenderParams->uViewportX];
                     v16 = &pBLVRenderParams->pRenderTarget[v15
-                                                        + 2 * *(__int16 *)((char *)stru_F8A590.array_18 + v12)
+                                                        + 2 * *(__int16 *)((char *)stru_F8A590.viewport_left_side + v12)
                                                         - pBLVRenderParams->uViewportX];
                     v14 = &pBLVRenderParams->pRenderTarget[v15
-                                                        + 2 * *(__int16 *)((char *)stru_F8A590.array_3D8 + v12)
+                                                        + 2 * *(__int16 *)((char *)stru_F8A590.viewport_right_side + v12)
                                                         - pBLVRenderParams->uViewportX];
                     v123 = (unsigned int)v16;
                   }
                   else
                   {
-                    v13 = *(__int16 *)((char *)stru_F8A590.array_18 + v12);
+                    v13 = *(__int16 *)((char *)stru_F8A590.viewport_left_side + v12);
                     v119 = &pBLVRenderParams->pTargetZBuffer[v13 + v99];
                     v123 = (unsigned int)&pBLVRenderParams->pRenderTarget[v13 + v11];
-                    v14 = &pBLVRenderParams->pRenderTarget[v11 + *(__int16 *)((char *)stru_F8A590.array_3D8 + v12)];
+                    v14 = &pBLVRenderParams->pRenderTarget[v11 + *(__int16 *)((char *)stru_F8A590.viewport_right_side + v12)];
                   }
                   v117 = (unsigned int)v14;
                   HIWORD(v17) = HIWORD(stru_F81018.field_0.field_0);
@@ -5004,7 +5004,7 @@
             v56 = 640 * stru_F8A590._viewport_space_y;
             for ( i = &stru_F83B80[stru_F8A590._viewport_space_y]; ; v14 = i )
             {
-              sub_4AE1E7(v12, *(__int16 *)((char *)stru_F8A590.array_18 + v13), v12);
+              sub_4AE1E7(v12, *(__int16 *)((char *)stru_F8A590.viewport_left_side + v13), v12);
               v14->field_0 += (GetTickCount() << 11) - (pBLVRenderParams->vPartyPos.x << 16);
               v15 = GetTickCount();
               v16 = v14->field_0;
@@ -5015,10 +5015,10 @@
               v52 = (unsigned __int64)(v17 * (signed __int64)-pBLVRenderParams->sSineY) >> 16;
               v53 = (unsigned __int64)(v17 * (signed __int64)pBLVRenderParams->sCosineY) >> 16;
               v18 = v14->field_28;
-              v19 = *(__int16 *)((char *)stru_F8A590.array_18 + v13);
+              v19 = *(__int16 *)((char *)stru_F8A590.viewport_left_side + v13);
               LOWORD(v18) = 0;
               v46 = stru_F8AD28.field_0 | v18;
-              v61 = *(__int16 *)((char *)stru_F8A590.array_3D8 + v13) - v19;
+              v61 = *(__int16 *)((char *)stru_F8A590.viewport_right_side + v13) - v19;
               if ( LOBYTE(viewparams->field_20) )
               {
                 v63 = &pBLVRenderParams->pTargetZBuffer[2 * (v19 + 320 * (v13 - pBLVRenderParams->uViewportY))