Mercurial > mm7
comparison mm7_2.cpp @ 1408:204cce84300b
FindSound
author | Ritor1 |
---|---|
date | Fri, 26 Jul 2013 18:11:36 +0600 |
parents | c0b273d33338 |
children | c9e3b93ec570 |
comparison
equal
deleted
inserted
replaced
1407:d4f57df4c299 | 1408:204cce84300b |
---|---|
3340 return result; | 3340 return result; |
3341 } | 3341 } |
3342 // 6836C8: using guessed type int 6836C8_num_decorations_6807E8; | 3342 // 6836C8: using guessed type int 6836C8_num_decorations_6807E8; |
3343 | 3343 |
3344 //----- (004621DA) -------------------------------------------------------- | 3344 //----- (004621DA) -------------------------------------------------------- |
3345 int __fastcall int_get_vector_length(signed int a1, signed int a2, signed int a3) | 3345 int int_get_vector_length(signed int x, signed int y, signed int z) |
3346 { | 3346 { |
3347 signed int v3; // eax@2 | 3347 signed int v3; // eax@2 |
3348 signed int v4; // eax@3 | 3348 |
3349 signed int v5; // esi@4 | 3349 if ( x < y ) |
3350 signed int v6; // esi@6 | 3350 { |
3351 | 3351 v3 = x; |
3352 if ( a1 < a2 ) | 3352 x = y; |
3353 { | 3353 y = v3; |
3354 v3 = a1; | 3354 } |
3355 a1 = a2; | 3355 if ( x < z ) |
3356 a2 = v3; | 3356 { |
3357 } | 3357 v3 = x; |
3358 v4 = a3; | 3358 x = z; |
3359 if ( a1 < a3 ) | 3359 z = v3; |
3360 { | 3360 } |
3361 v5 = a1; | 3361 if ( y < z ) |
3362 a1 = a3; | 3362 { |
3363 v4 = v5; | 3363 v3 = y; |
3364 } | 3364 y = z; |
3365 if ( a2 < v4 ) | 3365 z = v3; |
3366 { | 3366 } |
3367 v6 = a2; | 3367 return (11 * y >> 5) + x + (z >> 2); |
3368 a2 = v4; | |
3369 v4 = v6; | |
3370 } | |
3371 return (11 * a2 >> 5) + a1 + (v4 >> 2); | |
3372 } | 3368 } |
3373 | 3369 |
3374 OPENFILENAMEA ofn; | 3370 OPENFILENAMEA ofn; |
3375 //----- (0046271C) -------------------------------------------------------- | 3371 //----- (0046271C) -------------------------------------------------------- |
3376 void __cdecl crt_init_globals_46271C() | 3372 void __cdecl crt_init_globals_46271C() |