Mercurial > mm7
comparison Outdoor.cpp @ 431:8c45cac1c5e1
Merge
author | Nomad |
---|---|
date | Sun, 24 Feb 2013 00:55:51 +0200 |
parents | 58b71c1af7d8 24936a5ff8ca |
children | 870358928460 |
comparison
equal
deleted
inserted
replaced
430:58b71c1af7d8 | 431:8c45cac1c5e1 |
---|---|
3138 // 5187E4: using guessed type int uNumSpritesDrawnThisFrame; | 3138 // 5187E4: using guessed type int uNumSpritesDrawnThisFrame; |
3139 | 3139 |
3140 //----- (0044C1E8) -------------------------------------------------------- | 3140 //----- (0044C1E8) -------------------------------------------------------- |
3141 bool ODMFace::HasEventHint() | 3141 bool ODMFace::HasEventHint() |
3142 { | 3142 { |
3143 signed int v1; // eax@1 | 3143 signed int event_index; // eax@1 |
3144 EventIndex *v2; // esi@2 | 3144 _evt_raw* start_evt; |
3145 bool result; // eax@5 | 3145 _evt_raw* end_evt; |
3146 signed int v4; // eax@6 | 3146 |
3147 | 3147 event_index = 0; |
3148 v1 = 0; | 3148 if ( (uLevelEVT_NumEvents - 1) <= 0 ) |
3149 if ( (signed int)(uLevelEVT_NumEvents - 1) <= 0 ) | 3149 return false; |
3150 goto LABEL_5; | 3150 while ( pLevelEVT_Index[event_index].uEventID != this->sCogTriggeredID ) |
3151 v2 = pLevelEVT_Index; | 3151 { |
3152 while ( v2->uEventID != this->sCogTriggeredID ) | 3152 ++event_index; |
3153 { | 3153 if ( event_index >= (signed int)(uLevelEVT_NumEvents - 1) ) |
3154 ++v1; | 3154 return false; |
3155 ++v2; | 3155 } |
3156 if ( v1 >= (signed int)(uLevelEVT_NumEvents - 1) ) | 3156 end_evt=(_evt_raw*)&pLevelEVT[pLevelEVT_Index[event_index+1].uEventOffsetInEVT]; |
3157 goto LABEL_5; | 3157 start_evt=(_evt_raw*)&pLevelEVT[pLevelEVT_Index[event_index].uEventOffsetInEVT]; |
3158 } | 3158 if ( (end_evt->_e_type != EVENT_Exit) || (start_evt->_e_type!= EVENT_MouseOver) ) |
3159 v4 = v1; | 3159 return false; |
3160 if ( pLevelEVT[pLevelEVT_Index[v4 + 1].uEventOffsetInEVT + 4] != 1 | |
3161 || pLevelEVT[pLevelEVT_Index[v4].uEventOffsetInEVT + 4] != 4 ) | |
3162 LABEL_5: | |
3163 result = 0; | |
3164 else | 3160 else |
3165 result = 1; | 3161 return true; |
3166 return result; | 3162 } |
3167 } |