comparison Indoor.cpp @ 428:24936a5ff8ca

level hints
author Gloval
date Sun, 24 Feb 2013 00:48:41 +0400
parents d8b3056df4e2
children 137c59c3dbc4
comparison
equal deleted inserted replaced
425:b663aca70246 428:24936a5ff8ca
3456 } 3456 }
3457 return v4; 3457 return v4;
3458 } 3458 }
3459 3459
3460 //----- (0044C23B) -------------------------------------------------------- 3460 //----- (0044C23B) --------------------------------------------------------
3461 int BLVFaceExtra::HasEventint() 3461 bool BLVFaceExtra::HasEventint()
3462 { 3462 {
3463 signed int v1; // eax@1 3463 signed int event_index; // eax@1
3464 EventIndex *v2; // esi@2 3464 _evt_raw* start_evt;
3465 signed int result; // eax@5 3465 _evt_raw* end_evt;
3466 signed int v4; // eax@6 3466
3467 3467 event_index = 0;
3468 v1 = 0; 3468 if ( (uLevelEVT_NumEvents - 1) <= 0 )
3469 if ( (signed int)(uLevelEVT_NumEvents - 1) <= 0 ) 3469 return false;
3470 goto LABEL_5; 3470 while ( pLevelEVT_Index[event_index].uEventID != this->uEventID )
3471 v2 = pLevelEVT_Index; 3471 {
3472 while ( v2->uEventID != this->uEventID ) 3472 ++event_index;
3473 { 3473 if ( event_index >= (signed int)(uLevelEVT_NumEvents - 1) )
3474 ++v1; 3474 return false;
3475 ++v2; 3475 }
3476 if ( v1 >= (signed int)(uLevelEVT_NumEvents - 1) ) 3476 end_evt=(_evt_raw*)&pLevelEVT[pLevelEVT_Index[event_index+1].uEventOffsetInEVT];
3477 goto LABEL_5; 3477 start_evt=(_evt_raw*)&pLevelEVT[pLevelEVT_Index[event_index].uEventOffsetInEVT];
3478 } 3478 if ( (end_evt->_e_type != EVENT_Exit) || (start_evt->_e_type!= EVENT_MouseOver) )
3479 v4 = v1; 3479 return false;
3480 if ( pLevelEVT[pLevelEVT_Index[v4 + 1].uEventOffsetInEVT + 4] != 1
3481 || pLevelEVT[pLevelEVT_Index[v4].uEventOffsetInEVT + 4] != 4 )
3482 LABEL_5:
3483 result = 0;
3484 else 3480 else
3485 result = 1; 3481 return true;
3486 return result;
3487 } 3482 }
3488 3483
3489 3484
3490 3485
3491 3486