diff mm7_2.cpp @ 1408:204cce84300b

FindSound
author Ritor1
date Fri, 26 Jul 2013 18:11:36 +0600
parents c0b273d33338
children c9e3b93ec570
line wrap: on
line diff
--- a/mm7_2.cpp	Tue Jul 23 16:34:00 2013 +0600
+++ b/mm7_2.cpp	Fri Jul 26 18:11:36 2013 +0600
@@ -3342,33 +3342,29 @@
 // 6836C8: using guessed type int 6836C8_num_decorations_6807E8;
 
 //----- (004621DA) --------------------------------------------------------
-int __fastcall int_get_vector_length(signed int a1, signed int a2, signed int a3)
+int int_get_vector_length(signed int x, signed int y, signed int z)
 {
   signed int v3; // eax@2
-  signed int v4; // eax@3
-  signed int v5; // esi@4
-  signed int v6; // esi@6
-
-  if ( a1 < a2 )
-  {
-    v3 = a1;
-    a1 = a2;
-    a2 = v3;
-  }
-  v4 = a3;
-  if ( a1 < a3 )
-  {
-    v5 = a1;
-    a1 = a3;
-    v4 = v5;
-  }
-  if ( a2 < v4 )
-  {
-    v6 = a2;
-    a2 = v4;
-    v4 = v6;
-  }
-  return (11 * a2 >> 5) + a1 + (v4 >> 2);
+
+  if ( x < y )
+  {
+    v3 = x;
+    x = y;
+    y = v3;
+  }
+  if ( x < z )
+  {
+    v3 = x;
+    x = z;
+    z = v3;
+  }
+  if ( y < z )
+  {
+    v3 = y;
+    y = z;
+    z = v3;
+  }
+  return (11 * y >> 5) + x + (z >> 2);
 }
 
 OPENFILENAMEA ofn;