comparison Indoor.cpp @ 307:72faa54ff319

Events stuff moved to its file
author Gloval
date Wed, 20 Feb 2013 00:26:17 +0400
parents af7e848d6def
children 6d584c95dcf8
comparison
equal deleted inserted replaced
304:f16ac5e65438 307:72faa54ff319
3461 3461
3462 //----- (0044C23B) -------------------------------------------------------- 3462 //----- (0044C23B) --------------------------------------------------------
3463 int BLVFaceExtra::HasEventint() 3463 int BLVFaceExtra::HasEventint()
3464 { 3464 {
3465 signed int v1; // eax@1 3465 signed int v1; // eax@1
3466 Event *v2; // esi@2 3466 EventIndex *v2; // esi@2
3467 signed int result; // eax@5 3467 signed int result; // eax@5
3468 signed int v4; // eax@6 3468 signed int v4; // eax@6
3469 3469
3470 v1 = 0; 3470 v1 = 0;
3471 if ( (signed int)(uLevelEVT_NumEvents - 1) <= 0 ) 3471 if ( (signed int)(uLevelEVT_NumEvents - 1) <= 0 )
3472 goto LABEL_5; 3472 goto LABEL_5;
3473 v2 = pLevelEVT_Events; 3473 v2 = pLevelEVT_Index;
3474 while ( v2->uEventID != this->uEventID ) 3474 while ( v2->uEventID != this->uEventID )
3475 { 3475 {
3476 ++v1; 3476 ++v1;
3477 ++v2; 3477 ++v2;
3478 if ( v1 >= (signed int)(uLevelEVT_NumEvents - 1) ) 3478 if ( v1 >= (signed int)(uLevelEVT_NumEvents - 1) )
3479 goto LABEL_5; 3479 goto LABEL_5;
3480 } 3480 }
3481 v4 = v1; 3481 v4 = v1;
3482 if ( pLevelEVT[pLevelEVT_Events[v4 + 1].uEventOffsetInEVT + 4] != 1 3482 if ( pLevelEVT[pLevelEVT_Index[v4 + 1].uEventOffsetInEVT + 4] != 1
3483 || pLevelEVT[pLevelEVT_Events[v4].uEventOffsetInEVT + 4] != 4 ) 3483 || pLevelEVT[pLevelEVT_Index[v4].uEventOffsetInEVT + 4] != 4 )
3484 LABEL_5: 3484 LABEL_5:
3485 result = 0; 3485 result = 0;
3486 else 3486 else
3487 result = 1; 3487 result = 1;
3488 return result; 3488 return result;