comparison Events.cpp @ 797:11dab247bd72

m
author Ritor1
date Mon, 25 Mar 2013 09:49:12 +0600
parents f004c7ceb7bd
children 977407dfa4c5
comparison
equal deleted inserted replaced
788:f004c7ceb7bd 797:11dab247bd72
1038 v121 = 26; 1038 v121 = 26;
1039 LABEL_295: 1039 LABEL_295:
1040 sub_4451A8_press_any_key(uEventID, v105, v121); 1040 sub_4451A8_press_any_key(uEventID, v105, v121);
1041 LABEL_301: 1041 LABEL_301:
1042 if ( v133 == 1 ) 1042 if ( v133 == 1 )
1043 LABEL_302: 1043 OnMapLeave();
1044 OnMapLeave();
1045 return; 1044 return;
1046 } 1045 }
1047 v84 = _evt->v13 + ((_evt->v14 + ((_evt->v15 + ((uint)_evt->v16 << 8)) << 8)) << 8); 1046 v84 = _evt->v13 + ((_evt->v14 + ((_evt->v15 + ((uint)_evt->v16 << 8)) << 8)) << 8);
1048 if ( !_strcmpi(GameUI_Footer_TimedString, &pLevelStr[pLevelStrOffsets[_evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8)]]) 1047 if ( !_strcmpi(GameUI_Footer_TimedString, &pLevelStr[pLevelStrOffsets[_evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8)]])
1049 || !_strcmpi(GameUI_Footer_TimedString, &pLevelStr[pLevelStrOffsets[v84]]) ) 1048 || !_strcmpi(GameUI_Footer_TimedString, &pLevelStr[pLevelStrOffsets[v84]]) )
1069 v4 = v124; 1068 v4 = v124;
1070 break; 1069 break;
1071 case EVENT_ReceiveDamage: 1070 case EVENT_ReceiveDamage:
1072 v85 = EVT_DWORD(_evt->v7 ); 1071 v85 = EVT_DWORD(_evt->v7 );
1073 v86 = _evt->v5; 1072 v86 = _evt->v5;
1074 if ( (unsigned __int8)v86 <= 3u ) 1073 if ( (unsigned __int8)v86 <= 3 )
1075 { 1074 {
1076 v119 = _evt->v6; 1075 v119 = _evt->v6;
1077 v115 = EVT_DWORD(_evt->v7 ); 1076 v115 = EVT_DWORD(_evt->v7 );
1078 v89 = (unsigned __int8)v86; 1077 v89 = (unsigned __int8)v86;
1079 goto LABEL_233; 1078 v88 = &pParty->pPlayers[v89];
1079 v88->ReceiveDamage(v115, v119);
1080 ++curr_seq_num;
1081 v4 = v124;
1082 break;
1080 } 1083 }
1081 if ( v86 == 4 ) 1084 if ( v86 == 4 )
1082 { 1085 {
1083 if ( !uActiveCharacter ) 1086 if ( !uActiveCharacter )
1084 { 1087 {
1090 break; 1093 break;
1091 } 1094 }
1092 v119 = _evt->v6; 1095 v119 = _evt->v6;
1093 v88 = pPlayers[uActiveCharacter]; 1096 v88 = pPlayers[uActiveCharacter];
1094 v115 = EVT_DWORD(_evt->v7 ); 1097 v115 = EVT_DWORD(_evt->v7 );
1095 goto LABEL_234; 1098 v88->ReceiveDamage(v115, v119);
1099 ++curr_seq_num;
1100 v4 = v124;
1101 break;
1096 } 1102 }
1097 if ( v86 != 5 ) 1103 if ( v86 != 5 )
1098 { 1104 {
1099 v119 = _evt->v6; 1105 v119 = _evt->v6;
1100 v115 = EVT_DWORD(_evt->v7 ); 1106 v115 = EVT_DWORD(_evt->v7 );
1101 v89 = rand() % 4; 1107 v89 = rand() % 4;
1102 LABEL_233:
1103 v88 = &pParty->pPlayers[v89]; 1108 v88 = &pParty->pPlayers[v89];
1104 LABEL_234:
1105 v88->ReceiveDamage(v115, v119); 1109 v88->ReceiveDamage(v115, v119);
1106 ++curr_seq_num; 1110 ++curr_seq_num;
1107 v4 = v124; 1111 v4 = v124;
1108 1112
1109 //v6 = v123; 1113 //v6 = v123;
1370 pDialogueWindow->Release(); 1374 pDialogueWindow->Release();
1371 dialog_menu_id = HOUSE_DIALOGUE_NULL; 1375 dialog_menu_id = HOUSE_DIALOGUE_NULL;
1372 pDialogueWindow = 0; 1376 pDialogueWindow = 0;
1373 pIcons_LOD->_40F9C5(); 1377 pIcons_LOD->_40F9C5();
1374 } 1378 }
1375 goto LABEL_302; 1379 OnMapLeave();
1380 return;
1376 } 1381 }
1377 } 1382 }
1378 ++curr_seq_num; 1383 ++curr_seq_num;
1379 v4 = v124; 1384 v4 = v124;
1380 1385