comparison mm7_2.cpp @ 1459:2ca62c9e7b3c

Function names
author Nomad
date Wed, 21 Aug 2013 16:06:50 +0200
parents 934074e7fcc1
children 0a7ceb4b25b7
comparison
equal deleted inserted replaced
1458:934074e7fcc1 1459:2ca62c9e7b3c
596 } 596 }
597 pAudioPlayer->PlaySound((SoundID)14060, 0, 0, -1, 0, 0, 0, 0); 597 pAudioPlayer->PlaySound((SoundID)14060, 0, 0, -1, 0, 0, 0, 0);
598 } 598 }
599 599
600 //----- (004BD8B5) -------------------------------------------------------- 600 //----- (004BD8B5) --------------------------------------------------------
601 signed int sub_4BD8B5() 601 int sub_4BD8B5()
602 { 602 {
603 int v0; // eax@4 603 int v0; // eax@4
604 int v1; // eax@29 604 int v1; // eax@29
605 unsigned int v2; // esi@30 605 unsigned int v2; // esi@30
606 //const char *v3; // ebx@31 606 //const char *v3; // ebx@31
607 607
608 if ( pMessageQueue_50CBD0->uNumMessages ) 608 if ( pMessageQueue_50CBD0->uNumMessages )
609 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; 609 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0;
610 pKeyActionMap->SetWindowInputStatus(3); 610 pKeyActionMap->SetWindowInputStatus(WINDOW_INPUT_CANCELLED);
611 pKeyActionMap->ResetKeys(); 611 pKeyActionMap->ResetKeys();
612 activeLevelDecoration = NULL; 612 activeLevelDecoration = NULL;
613 current_npc_text = 0; 613 current_npc_text = 0;
614 if ( pDialogueNPCCount ) 614 if ( pDialogueNPCCount )
615 { 615 {
1576 a1a.uSectorID = pIndoor->GetSector(a2->vPosition.x, a2->vPosition.y, a2->vPosition.z);; 1576 a1a.uSectorID = pIndoor->GetSector(a2->vPosition.x, a2->vPosition.y, a2->vPosition.z);;
1577 return a1a.Create(0, 0, 0, 0); 1577 return a1a.Create(0, 0, 0, 0);
1578 } 1578 }
1579 1579
1580 //----- (00450521) -------------------------------------------------------- 1580 //----- (00450521) --------------------------------------------------------
1581 signed int __fastcall sub_450521_ProllyDropItemAt(int ecx0, signed int a2, int a3, int a4, int a5, unsigned __int16 a6) 1581 int __fastcall sub_450521_ProllyDropItemAt(int ecx0, signed int a2, int a3, int a4, int a5, unsigned __int16 a6)
1582 { 1582 {
1583 int v6; // edi@1 1583 int v6; // edi@1
1584 int v7; // esi@1 1584 int v7; // esi@1
1585 signed int v8; // edi@1 1585 signed int v8; // edi@1
1586 unsigned __int16 v9; // cx@1 1586 unsigned __int16 v9; // cx@1
3032 PlayLevelMusic(); 3032 PlayLevelMusic();
3033 } 3033 }
3034 // 6BE35C: using guessed type int uLevel_StartingPointType; 3034 // 6BE35C: using guessed type int uLevel_StartingPointType;
3035 3035
3036 //----- (00461103) -------------------------------------------------------- 3036 //----- (00461103) --------------------------------------------------------
3037 void sub_461103() 3037 void _461103_load_level_sub()
3038 { 3038 {
3039 //GUIProgressBar *v0; // ebx@1 3039 //GUIProgressBar *v0; // ebx@1
3040 //signed int v1; // ebp@1 3040 //signed int v1; // ebp@1
3041 //char *v2; // esi@2 3041 //char *v2; // esi@2
3042 __int16 v3; // cx@3 3042 __int16 v3; // cx@3
3186 3186
3187 if ( dword_6BE368_debug_settings_2 & 4 ) 3187 if ( dword_6BE368_debug_settings_2 & 4 )
3188 uNumActors = 0; 3188 uNumActors = 0;
3189 if ( dword_6BE368_debug_settings_2 & 8 ) 3189 if ( dword_6BE368_debug_settings_2 & 8 )
3190 uNumLevelDecorations = 0; 3190 uNumLevelDecorations = 0;
3191 sub_4613C4(); 3191 init_event_triggers();
3192 3192
3193 pGameLoadingUI_ProgressBar->Progress(); 3193 pGameLoadingUI_ProgressBar->Progress();
3194 3194
3195 pIndoorCamera->pos.y = 0; 3195 pIndoorCamera->pos.y = 0;
3196 pIndoorCamera->pos.x = 0; 3196 pIndoorCamera->pos.x = 0;
3204 if ( pParty->pPickedItem.uItemID != 0 ) 3204 if ( pParty->pPickedItem.uItemID != 0 )
3205 pMouse->SetCursorBitmapFromItemID(pParty->pPickedItem.uItemID); 3205 pMouse->SetCursorBitmapFromItemID(pParty->pPickedItem.uItemID);
3206 } 3206 }
3207 3207
3208 //----- (004613C4) -------------------------------------------------------- 3208 //----- (004613C4) --------------------------------------------------------
3209 int sub_4613C4() 3209 void init_event_triggers()
3210 { 3210 {
3211 unsigned __int16 v0; // ax@1 3211 uint id = pDecorationList->GetDecorIdByName("Event Trigger");
3212 size_t v1; // ecx@1 3212
3213 int v2; // esi@1 3213 num_event_triggers = 0;
3214 int result; // eax@1 3214 for (uint i = 0; i < uNumLevelDecorations; ++i)
3215 LevelDecoration *v4; // edx@2 3215 if (pLevelDecorations[i].uDecorationDescID == id)
3216 int v5; // edi@4 3216 event_triggers[num_event_triggers++] = i;
3217
3218 _6836C8_num_decorations_6807E8 = 0;
3219 v0 = pDecorationList->GetDecorIdByName("Event Trigger");
3220 v1 = uNumLevelDecorations;
3221 v2 = (signed __int16)v0;
3222 result = 0;
3223 if ( (signed int)uNumLevelDecorations > 0 )
3224 {
3225 v4 = pLevelDecorations.data();
3226 do
3227 {
3228 if ( v4->uDecorationDescID == v2 )
3229 {
3230 v5 = _6836C8_num_decorations_6807E8++;
3231 _6807E8_level_decorations_ids[v5] = result;
3232 }
3233 ++result;
3234 ++v4;
3235 }
3236 while ( result < (signed int)v1 );
3237 }
3238 return result;
3239 } 3217 }
3240 // 6836C8: using guessed type int 6836C8_num_decorations_6807E8;
3241 3218
3242 //----- (004621DA) -------------------------------------------------------- 3219 //----- (004621DA) --------------------------------------------------------
3243 int int_get_vector_length(signed int x, signed int y, signed int z) 3220 int int_get_vector_length(signed int x, signed int y, signed int z)
3244 { 3221 {
3245 signed int v3; // eax@2 3222 signed int v3; // eax@2
4163 if ( _stricmp(Str1, "blv") ) 4140 if ( _stricmp(Str1, "blv") )
4164 PrepareToLoadODM(v9, 0); 4141 PrepareToLoadODM(v9, 0);
4165 else 4142 else
4166 PrepareToLoadBLV(v9); 4143 PrepareToLoadBLV(v9);
4167 pAudioPlayer->SetMapEAX(); 4144 pAudioPlayer->SetMapEAX();
4168 sub_461103(); 4145 _461103_load_level_sub();
4169 if ( !_stricmp(pCurrentMapName.data(), "d11.blv") || !_stricmp(pCurrentMapName.data(), "d10.blv") ) 4146 if ( !_stricmp(pCurrentMapName.data(), "d11.blv") || !_stricmp(pCurrentMapName.data(), "d10.blv") )
4170 { 4147 {
4171 //spawning grounds & good analogue - no loot & exp from monsters 4148 //spawning grounds & good analogue - no loot & exp from monsters
4172 4149
4173 for (uint i = 0; i < uNumActors; ++i) 4150 for (uint i = 0; i < uNumActors; ++i)
4178 } 4155 }
4179 } 4156 }
4180 bDialogueUI_InitializeActor_NPC_ID = 0; 4157 bDialogueUI_InitializeActor_NPC_ID = 0;
4181 OnMapLoad(); 4158 OnMapLoad();
4182 pGameLoadingUI_ProgressBar->Progress(); 4159 pGameLoadingUI_ProgressBar->Progress();
4183 memset(&pRenderer->pBillboardRenderListD3D, 0, sizeof(pRenderer->pBillboardRenderListD3D)); 4160 memset(&pRenderer->pBillboardRenderListD3D, 0, sizeof(pRenderer->pBillboardRenderListD3D));
4184 pGameLoadingUI_ProgressBar->Release(); 4161 pGameLoadingUI_ProgressBar->Release();
4185 _flushall(); 4162 _flushall();
4186 } 4163 }
4187 4164
4188 //----- (004649EF) -------------------------------------------------------- 4165 //----- (004649EF) --------------------------------------------------------
5772 MENU_STATE GetCurrentMenuID() 5749 MENU_STATE GetCurrentMenuID()
5773 { 5750 {
5774 return uCurrentMenuID; 5751 return uCurrentMenuID;
5775 } 5752 }
5776 5753
5777 // 720980: using guessed type int uTextureID_720980;
5778
5779 // 4E28F8: using guessed type int pCurrentScreen;
5780 5754
5781 //----- (0046A6AC) -------------------------------------------------------- 5755 //----- (0046A6AC) --------------------------------------------------------
5782 int __fastcall sub_46A6AC(int a1, int a2, int a3) 5756 int __fastcall _46A6AC_spell_render(int a1, int a2, int a3)
5783 { 5757 {
5784 int result; // eax@2 5758 int result; // eax@2
5785 unsigned int v4; // edx@3 5759 unsigned int v4; // edx@3
5786 int *v5; // esi@6 5760 int *v5; // esi@6
5787 unsigned int v6; // ebx@6 5761 unsigned int v6; // ebx@6
5798 5772
5799 v11 = a2; 5773 v11 = a2;
5800 v14 = a1; 5774 v14 = a1;
5801 if ( pRenderer->pRenderD3D ) 5775 if ( pRenderer->pRenderD3D )
5802 { 5776 {
5803 result = sub_46A7C8(a1, a2, a3); 5777 result = _46A6AC_spell_render_d3d(a1, a2, a3);
5804 } 5778 }
5805 else 5779 else
5806 { 5780 {
5781 __debugbreak(); // SW render never called
5807 v16 = 0; 5782 v16 = 0;
5808 v4 = viewparams->uScreen_topL_X; 5783 v4 = viewparams->uScreen_topL_X;
5809 v12 = viewparams->uScreen_BttmR_X; 5784 v12 = viewparams->uScreen_BttmR_X;
5810 if ( (signed int)viewparams->uScreen_topL_Y < (signed int)viewparams->uScreen_BttmR_Y ) 5785 if ( (signed int)viewparams->uScreen_topL_Y < (signed int)viewparams->uScreen_BttmR_Y )
5811 { 5786 {
5860 } 5835 }
5861 return result; 5836 return result;
5862 } 5837 }
5863 5838
5864 //----- (0046A7C8) -------------------------------------------------------- 5839 //----- (0046A7C8) --------------------------------------------------------
5865 int __fastcall sub_46A7C8(int a1, int a2, signed int a3) 5840 int __fastcall _46A6AC_spell_render_d3d(int a1, int a2, int a3)
5866 { 5841 {
5867 unsigned int v3; // eax@2 5842 unsigned int v3; // eax@2
5868 int v4; // ecx@2 5843 int v4; // ecx@2
5869 unsigned int v5; // eax@2 5844 unsigned int v5; // eax@2
5870 unsigned int v6; // eax@4 5845 unsigned int v6; // eax@4
5929 } 5904 }
5930 return v15; 5905 return v15;
5931 } 5906 }
5932 5907
5933 //----- (0046A89E) -------------------------------------------------------- 5908 //----- (0046A89E) --------------------------------------------------------
5934 int __fastcall sub_46A89E(int a1, int a2, signed int a3) 5909 int __fastcall _46A89E_immolation_effect(int a1, int a2, int a3)
5935 { 5910 {
5936 signed int v3; // edi@1 5911 signed int v3; // edi@1
5937 Actor *v4; // esi@2 5912 Actor *v4; // esi@2
5938 int v5; // ebx@3 5913 int v5; // ebx@3
5939 int v6; // eax@3 5914 int v6; // eax@3