diff mm7_3.cpp @ 127:9eac46182d8f

Слияние
author Ritor1
date Sun, 04 Nov 2012 09:37:39 +0600
parents 6305c1cd9f6e
children 8be5293b6b33 ccc0cf95706a
line wrap: on
line diff
--- a/mm7_3.cpp	Sun Nov 04 09:37:15 2012 +0600
+++ b/mm7_3.cpp	Sun Nov 04 09:37:39 2012 +0600
@@ -12904,37 +12904,26 @@
 }
 
 //----- (0043F9E1) --------------------------------------------------------
-__int16 *stru170_stru2::_43F9E1(__int16 x, int y, __int16 z, int w)
-{
-  signed int v5; // edx@1
-  __int16 *result; // eax@1
-
-  auto a2 = x;
-  auto a3 = y;
-  auto a4 = z;
-  auto a5 = w;
-
-  this->_viewport_space_y = a3;
-  this->field_4 = a5;
-  v5 = 0;
-  result = this->array_3D8;
-  do
-  {
-    if ( v5 < a3 || v5 > a5 )
-    {
-      *result = -1;
-      *(result - 480) = 640;
-    }
-    else
-    {
-      *(result - 480) = a2;
-      *result = a4;
-    }
-    ++v5;
-    ++result;
-  }
-  while ( v5 < 480 );
-  return result;
+void stru170_stru2::_43F9E1(__int16 x, int y, __int16 z, int w)
+{
+  __debugbreak();
+
+  _viewport_space_y = y;
+  _viewport_space_w = w;
+
+  for (uint i = 0; i < 480; ++i)
+  {
+    if ( i < y || i > w )
+    {
+      array_3D8[i] = -1;
+      array_18[i] = 640;
+    }
+    else
+    {
+      array_18[i] = x;
+      array_3D8[i] = z;
+    } 
+  }
 }
 
 //----- (0043FA33) --------------------------------------------------------