diff mm7_3.cpp @ 98:f76e4ea4a224

Outdoor::Load
author Nomad
date Sun, 04 Nov 2012 03:58:34 +0200
parents 6c42178c226e
children 6305c1cd9f6e
line wrap: on
line diff
--- a/mm7_3.cpp	Fri Nov 02 14:45:06 2012 +0200
+++ b/mm7_3.cpp	Sun Nov 04 03:58:34 2012 +0200
@@ -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) --------------------------------------------------------