diff IndoorCameraD3D.cpp @ 2281:d8b4a36f54a4

AI_RandomMove cleaned
author Ritor1
date Fri, 14 Mar 2014 23:55:50 +0600
parents b9adf4f414f6
children 847aba0b7f82
line wrap: on
line diff
--- a/IndoorCameraD3D.cpp	Fri Mar 14 22:41:35 2014 +0600
+++ b/IndoorCameraD3D.cpp	Fri Mar 14 23:55:50 2014 +0600
@@ -615,28 +615,14 @@
 //----- (004379EE) --------------------------------------------------------
 void IndoorCameraD3D::debug_outline_sw(RenderVertexSoft *a2, unsigned int uNumVertices, unsigned int uDiffuse, float a5)
 {
-  unsigned int v5; // esi@1
-  RenderVertexSoft *v6; // eax@2
-  RenderVertexSoft *v7; // edi@3
-  char v8; // zf@3
-  unsigned int uNumVerticesa; // [sp+20h] [bp+Ch]@2
-
-  v5 = 0;
+  if ( !uNumVertices )
+    return;
   if ( (signed int)(uNumVertices - 1) > 0 )
   {
-    v6 = a2;
-    v5 = uNumVertices - 1;
-    uNumVerticesa = uNumVertices - 1;
-    do
-    {
-      v7 = v6 + 1;
-      do_draw_debug_line_sw(v6, uDiffuse, v6 + 1, uDiffuse, 0, a5);
-      v8 = uNumVerticesa-- == 1;
-      v6 = v7;
-    }
-    while ( !v8 );
+    for ( uint i = 0; i < uNumVertices - 1; i++ )
+      do_draw_debug_line_sw(&a2[i], uDiffuse, &a2[i + 1], uDiffuse, 0, a5);
   }
-  do_draw_debug_line_sw(&a2[v5], uDiffuse, a2, uDiffuse, 0, a5);
+  do_draw_debug_line_sw(&a2[uNumVertices - 1], uDiffuse, a2, uDiffuse, 0, a5);
 }