comparison mm7_4.cpp @ 71:8453114181af

intermediate
author Nomad
date Sat, 27 Oct 2012 21:44:29 +0200
parents efefae49c990
children ad87d8679e02
comparison
equal deleted inserted replaced
70:47736b43558d 71:8453114181af
232 } 232 }
233 } 233 }
234 // 6836C8: using guessed type int 6836C8_num_decorations_6807E8; 234 // 6836C8: using guessed type int 6836C8_num_decorations_6807E8;
235 235
236 //----- (0046CEC3) -------------------------------------------------------- 236 //----- (0046CEC3) --------------------------------------------------------
237 int __fastcall _46CEC3_get_floor_level(signed int a1, signed int a2, int a3, unsigned int uSectorID, int *a5) 237 int __fastcall _46CEC3_get_floor_level(signed int a1, signed int a2, int a3, unsigned int uSectorID, unsigned int *pFaceID)
238 { 238 {
239 BLVSector *v5; // edi@1 239 BLVSector *v5; // edi@1
240 int v6; // ecx@1 240 int v6; // ecx@1
241 Vec3_short_ *v7; // edx@1 241 Vec3_short_ *v7; // edx@1
242 BLVFace *v8; // esi@2 242 BLVFace *v8; // esi@2
479 } 479 }
480 } 480 }
481 v35 = 1; 481 v35 = 1;
482 if ( v55 == 1 ) 482 if ( v55 == 1 )
483 { 483 {
484 *a5 = dword_721200[0]; 484 *pFaceID = dword_721200[0];
485 return dword_7212C8[0]; 485 return dword_7212C8[0];
486 } 486 }
487 if ( !v55 ) 487 if ( !v55 )
488 return -30000; 488 return -30000;
489 *a5 = dword_721200[0]; 489 *pFaceID = dword_721200[0];
490 result = dword_7212C8[0]; 490 result = dword_7212C8[0];
491 if ( v55 > 1 ) 491 if ( v55 > 1 )
492 { 492 {
493 v37 = a3 + 5; 493 v37 = a3 + 5;
494 while ( 1 ) 494 while ( 1 )
505 } 505 }
506 if ( v38 <= result || v38 > v37 ) 506 if ( v38 <= result || v38 > v37 )
507 goto LABEL_68; 507 goto LABEL_68;
508 LABEL_67: 508 LABEL_67:
509 result = dword_7212C8[v35]; 509 result = dword_7212C8[v35];
510 *a5 = dword_721200[v35]; 510 *pFaceID = dword_721200[v35];
511 goto LABEL_68; 511 goto LABEL_68;
512 } 512 }
513 return result; 513 return result;
514 } 514 }
515 515