Mercurial > mm7
comparison mm7_2.cpp @ 1982:2647e2f820a6
Слияние
author | Ritor1 |
---|---|
date | Fri, 01 Nov 2013 14:44:06 +0600 |
parents | c1c74df0a33e |
children | b00f5bb7d930 |
comparison
equal
deleted
inserted
replaced
1981:d9ea00250e2e | 1982:2647e2f820a6 |
---|---|
113 | 113 |
114 case ExpertHealer: | 114 case ExpertHealer: |
115 { | 115 { |
116 for (int i = 0; i < 4; ++i) | 116 for (int i = 0; i < 4; ++i) |
117 { | 117 { |
118 auto player = &pParty->pPlayers[i]; | 118 Player* player = &pParty->pPlayers[i]; |
119 player->sHealth = player->GetMaxHealth(); | 119 player->sHealth = player->GetMaxHealth(); |
120 | 120 |
121 for (int j = 0; j < 14; ++j) | 121 for (int j = 0; j < 14; ++j) |
122 player->pConditions[i] = 0; | 122 player->pConditions[i] = 0; |
123 player->pConditions[18] = 0; | 123 player->pConditions[18] = 0; |
127 | 127 |
128 case MasterHealer: | 128 case MasterHealer: |
129 { | 129 { |
130 for (int i = 0; i < 4; ++i) | 130 for (int i = 0; i < 4; ++i) |
131 { | 131 { |
132 auto player = &pParty->pPlayers[i]; | 132 Player* player = &pParty->pPlayers[i]; |
133 player->sHealth = player->GetMaxHealth(); | 133 player->sHealth = player->GetMaxHealth(); |
134 | 134 |
135 auto v5 = LODWORD(player->pConditions[19]);//*((int *)v4 - 32); | 135 int v5 = LODWORD(player->pConditions[19]);//*((int *)v4 - 32); |
136 auto v6 = HIDWORD(player->pConditions[19]);//*((int *)v4 - 31); | 136 int v6 = HIDWORD(player->pConditions[19]);//*((int *)v4 - 31); |
137 memset(player->pConditions.data(), 0, 0xA0u); | 137 memset(player->pConditions.data(), 0, 0xA0u); |
138 | 138 |
139 __debugbreak(); | 139 __debugbreak(); |
140 *(int *)&player->pActiveSkills[8] = v5; | 140 *(int *)&player->pActiveSkills[8] = v5; |
141 *(int *)&player->pActiveSkills[10] = v6; | 141 *(int *)&player->pActiveSkills[10] = v6; |
171 ShowStatusBarString(pGlobalTXT_LocalizationStrings[494], 2); | 171 ShowStatusBarString(pGlobalTXT_LocalizationStrings[494], 2); |
172 pAudioPlayer->PlaySound(SOUND_203, 0, 0, -1, 0, 0, 0, 0); | 172 pAudioPlayer->PlaySound(SOUND_203, 0, 0, -1, 0, 0, 0, 0); |
173 } | 173 } |
174 else | 174 else |
175 { | 175 { |
176 auto v19 = pOtherOverlayList->_4418B1(10008, 203, 0, 65536); | 176 int v19 = pOtherOverlayList->_4418B1(10008, 203, 0, 65536); |
177 pParty->pPartyBuffs[PARTY_BUFF_FLY].Apply(pParty->uTimePlayed + 60 * (256 * 2), 3, 1, v19, 0); | 177 pParty->pPartyBuffs[PARTY_BUFF_FLY].Apply(pParty->uTimePlayed + 60 * (256 * 2), 3, 1, v19, 0); |
178 pParty->pPartyBuffs[PARTY_BUFF_FLY].uFlags |= 1u; | 178 pParty->pPartyBuffs[PARTY_BUFF_FLY].uFlags |= 1u; |
179 pAudioPlayer->PlaySound(SOUND_11090, 0, 0, -1, 0, 0, 0, 0); | 179 pAudioPlayer->PlaySound(SOUND_11090, 0, 0, -1, 0, 0, 0, 0); |
180 } | 180 } |
181 } | 181 } |
182 break; | 182 break; |
183 | 183 |
184 case WaterMaster: | 184 case WaterMaster: |
185 { | 185 { |
186 auto v20 = pOtherOverlayList->_4418B1(10005, 201, 0, 65536); | 186 int v20 = pOtherOverlayList->_4418B1(10005, 201, 0, 65536); |
187 pParty->pPartyBuffs[PARTY_BUFF_WATER_WALK].Apply(pParty->uTimePlayed + 60 * (256 * (2 + 1)), 3, 0, v20, 0); | 187 pParty->pPartyBuffs[PARTY_BUFF_WATER_WALK].Apply(pParty->uTimePlayed + 60 * (256 * (2 + 1)), 3, 0, v20, 0); |
188 pParty->pPartyBuffs[PARTY_BUFF_WATER_WALK].uFlags |= 1u; | 188 pParty->pPartyBuffs[PARTY_BUFF_WATER_WALK].uFlags |= 1u; |
189 pAudioPlayer->PlaySound(SOUND_12040, 0, 0, -1, 0, 0, 0, 0); | 189 pAudioPlayer->PlaySound(SOUND_12040, 0, 0, -1, 0, 0, 0, 0); |
190 } | 190 } |
191 break; | 191 break; |
449 pViewport->uViewportTL_Y, | 449 pViewport->uViewportTL_Y, |
450 pViewport->uViewportBR_X - pViewport->uViewportTL_X, | 450 pViewport->uViewportBR_X - pViewport->uViewportTL_X, |
451 pViewport->uViewportBR_Y - pViewport->uViewportTL_Y + 1, | 451 pViewport->uViewportBR_Y - pViewport->uViewportTL_Y + 1, |
452 pRenderer->uTargetGMask | pRenderer->uTargetBMask); | 452 pRenderer->uTargetGMask | pRenderer->uTargetBMask); |
453 | 453 |
454 auto pTex = pIcons_LOD->GetTexture(uTextureID_Leather); | 454 Texture* pTex = pIcons_LOD->GetTexture(uTextureID_Leather); |
455 pRenderer->GetLeather(8, 352 - v0, pTex, pTex->uTextureHeight - v0); | 455 pRenderer->GetLeather(8, 352 - v0, pTex, pTex->uTextureHeight - v0); |
456 | 456 |
457 pRenderer->DrawTextureIndexed(8u, 347 - v0, pTexture_591428); | 457 pRenderer->DrawTextureIndexed(8u, 347 - v0, pTexture_591428); |
458 v1 = FitTextInAWindow(pGlobalTXT_LocalizationStrings[575], pFontArrus, &window, 0xDu, 0); | 458 v1 = FitTextInAWindow(pGlobalTXT_LocalizationStrings[575], pFontArrus, &window, 0xDu, 0); |
459 pDialogueWindow->DrawText(pFontArrus, 13, 354 - v0, 0, v1, 0, 0, 0); | 459 pDialogueWindow->DrawText(pFontArrus, 13, 354 - v0, 0, v1, 0, 0, 0); |
1407 && (result = abs(result - pParty->vPosition.z), result <= 1024) ) | 1407 && (result = abs(result - pParty->vPosition.z), result <= 1024) ) |
1408 { | 1408 { |
1409 if ( v20 == uNumActors ) | 1409 if ( v20 == uNumActors ) |
1410 ++uNumActors; | 1410 ++uNumActors; |
1411 v6->uSummonerID = PID(OBJECT_Player, a1); | 1411 v6->uSummonerID = PID(OBJECT_Player, a1); |
1412 result = v6->pActorBuffs[2].Apply(pParty->uTimePlayed + (a3 * 128) / 30.0f, | 1412 result = v6->pActorBuffs[ACTOR_BUFF_SUMMONED].Apply(pParty->uTimePlayed + (a3 * 128) / 30.0f, |
1413 a2, | 1413 a2, |
1414 a1, | 1414 a1, |
1415 0, | 1415 0, |
1416 0); | 1416 0); |
1417 } | 1417 } |
1777 memset(stru_5E4C90_MapPersistVars._decor_events.data(), 0, 125); | 1777 memset(stru_5E4C90_MapPersistVars._decor_events.data(), 0, 125); |
1778 | 1778 |
1779 uint decorEventIdx = 0; | 1779 uint decorEventIdx = 0; |
1780 for (uint i = 0; i < uNumLevelDecorations; ++i) | 1780 for (uint i = 0; i < uNumLevelDecorations; ++i) |
1781 { | 1781 { |
1782 auto decor = &pLevelDecorations[i]; | 1782 LevelDecoration* decor = &pLevelDecorations[i]; |
1783 | 1783 |
1784 if (!decor->uEventID) | 1784 if (!decor->uEventID) |
1785 { | 1785 { |
1786 if (decor->IsInteractive()) | 1786 if (decor->IsInteractive()) |
1787 { | 1787 { |
2140 int quotient; | 2140 int quotient; |
2141 int lowIdx; | 2141 int lowIdx; |
2142 int highIdx; | 2142 int highIdx; |
2143 int angle; | 2143 int angle; |
2144 | 2144 |
2145 auto X = x; | 2145 int X = x; |
2146 auto Y = y; | 2146 int Y = y; |
2147 | 2147 |
2148 if ( abs(X) < 65536 ) | 2148 if ( abs(X) < 65536 ) |
2149 { | 2149 { |
2150 if ( (abs(Y) >> 15) >= abs(X) ) | 2150 if ( (abs(Y) >> 15) >= abs(X) ) |
2151 X = 0; | 2151 X = 0; |
2865 | 2865 |
2866 //v15 = 0; | 2866 //v15 = 0; |
2867 for (uint i = 0; i < uNumActors; ++i) | 2867 for (uint i = 0; i < uNumActors; ++i) |
2868 //if ( (signed int)uNumActors > 0 ) | 2868 //if ( (signed int)uNumActors > 0 ) |
2869 { | 2869 { |
2870 auto pActor = &pActors[i]; | 2870 Actor* pActor = &pActors[i]; |
2871 //v2 = (char *)&pActors[0].uNPC_ID; | 2871 //v2 = (char *)&pActors[0].uNPC_ID; |
2872 //do | 2872 //do |
2873 //{ | 2873 //{ |
2874 v3 = pActor->pMonsterInfo.uID; | 2874 v3 = pActor->pMonsterInfo.uID; |
2875 v17 = 0; | 2875 v17 = 0; |
2916 v20 = 0; | 2916 v20 = 0; |
2917 //v16 = v1; | 2917 //v16 = v1; |
2918 | 2918 |
2919 for (uint i = 0; i < uNumActors; ++i) | 2919 for (uint i = 0; i < uNumActors; ++i) |
2920 { | 2920 { |
2921 auto pActor = &pActors[i]; | 2921 Actor* pActor = &pActors[i]; |
2922 //v7 = (char *)&pActors[0].pMonsterInfo; | 2922 //v7 = (char *)&pActors[0].pMonsterInfo; |
2923 //do | 2923 //do |
2924 //{ | 2924 //{ |
2925 v8 = 0; | 2925 v8 = 0; |
2926 if ( v6 > 0 ) | 2926 if ( v6 > 0 ) |
2956 { | 2956 { |
2957 v9 = v21[_v0]; | 2957 v9 = v21[_v0]; |
2958 v18 = 4; | 2958 v18 = 4; |
2959 v10 = &pMonsterStats->pInfos[v9 + 1]; | 2959 v10 = &pMonsterStats->pInfos[v9 + 1]; |
2960 //v11 = (int *)pMonsterList->pMonsters[v9].pSoundSampleIDs; | 2960 //v11 = (int *)pMonsterList->pMonsters[v9].pSoundSampleIDs; |
2961 auto v11 = &pMonsterList->pMonsters[v9]; | 2961 MonsterDesc* v11 = &pMonsterList->pMonsters[v9]; |
2962 do | 2962 do |
2963 { | 2963 { |
2964 pSoundList->LoadSound(v11->pSoundSampleIDs[4 - v18], 0); | 2964 pSoundList->LoadSound(v11->pSoundSampleIDs[4 - v18], 0); |
2965 //v11 = (int *)((char *)v11 + 2); | 2965 //v11 = (int *)((char *)v11 + 2); |
2966 --v18; | 2966 --v18; |
3030 pMouse->RemoveHoldingItem(); | 3030 pMouse->RemoveHoldingItem(); |
3031 | 3031 |
3032 pIcons_LOD->_inlined_sub2(); | 3032 pIcons_LOD->_inlined_sub2(); |
3033 | 3033 |
3034 pWindow_MainMenu = GUIWindow::Create(0, 0, 640, 480, WINDOW_MainMenu, 0, 0); | 3034 pWindow_MainMenu = GUIWindow::Create(0, 0, 640, 480, WINDOW_MainMenu, 0, 0); |
3035 auto pNew = pIcons_LOD->LoadTexturePtr("title_new", TEXTURE_16BIT_PALETTE); | 3035 Texture* pNew = pIcons_LOD->LoadTexturePtr("title_new", TEXTURE_16BIT_PALETTE); |
3036 auto pLoad = pIcons_LOD->LoadTexturePtr("title_load", TEXTURE_16BIT_PALETTE); | 3036 Texture* pLoad = pIcons_LOD->LoadTexturePtr("title_load", TEXTURE_16BIT_PALETTE); |
3037 auto pCredits = pIcons_LOD->LoadTexturePtr("title_cred", TEXTURE_16BIT_PALETTE); | 3037 Texture* pCredits = pIcons_LOD->LoadTexturePtr("title_cred", TEXTURE_16BIT_PALETTE); |
3038 auto pExit = pIcons_LOD->LoadTexturePtr("title_exit", TEXTURE_16BIT_PALETTE); | 3038 Texture* pExit = pIcons_LOD->LoadTexturePtr("title_exit", TEXTURE_16BIT_PALETTE); |
3039 | 3039 |
3040 pMainMenu_BtnNew = pWindow_MainMenu->CreateButton(495, 172, pNew->uTextureWidth, pNew->uTextureHeight, 1, 0, UIMSG_MainMenu_ShowPartyCreationWnd, 0, 'N', "", pNew, 0); | 3040 pMainMenu_BtnNew = pWindow_MainMenu->CreateButton(495, 172, pNew->uTextureWidth, pNew->uTextureHeight, 1, 0, UIMSG_MainMenu_ShowPartyCreationWnd, 0, 'N', "", pNew, 0); |
3041 pMainMenu_BtnLoad = pWindow_MainMenu->CreateButton(495, 227, pLoad->uTextureWidth, pLoad->uTextureHeight, 1, 0, UIMSG_MainMenu_ShowLoadWindow, 1, 'L', "", pLoad, 0); | 3041 pMainMenu_BtnLoad = pWindow_MainMenu->CreateButton(495, 227, pLoad->uTextureWidth, pLoad->uTextureHeight, 1, 0, UIMSG_MainMenu_ShowLoadWindow, 1, 'L', "", pLoad, 0); |
3042 pMainMenu_BtnCredits = pWindow_MainMenu->CreateButton(495, 282, pCredits->uTextureWidth, pCredits->uTextureHeight, 1, 0, UIMSG_ShowCredits, 2, 'C', "", pCredits, 0); | 3042 pMainMenu_BtnCredits = pWindow_MainMenu->CreateButton(495, 282, pCredits->uTextureWidth, pCredits->uTextureHeight, 1, 0, UIMSG_ShowCredits, 2, 'C', "", pCredits, 0); |
3043 pMainMenu_BtnExit = pWindow_MainMenu->CreateButton(495, 337, pExit->uTextureWidth, pExit->uTextureHeight, 1, 0, UIMSG_ExitToWindows, 3, 0, "", pExit, 0); | 3043 pMainMenu_BtnExit = pWindow_MainMenu->CreateButton(495, 337, pExit->uTextureWidth, pExit->uTextureHeight, 1, 0, UIMSG_ExitToWindows, 3, 0, "", pExit, 0); |
3506 } | 3506 } |
3507 | 3507 |
3508 memcpy(Filename, "X:\\anims\\magic7.vid", sizeof(Filename)); | 3508 memcpy(Filename, "X:\\anims\\magic7.vid", sizeof(Filename)); |
3509 *Filename = c; | 3509 *Filename = c; |
3510 | 3510 |
3511 auto f = fopen(Filename, "rb"); | 3511 FILE* f = fopen(Filename, "rb"); |
3512 if (!f) | 3512 if (!f) |
3513 return false; | 3513 return false; |
3514 | 3514 |
3515 if (!fseek(f, 0, SEEK_END)) | 3515 if (!fseek(f, 0, SEEK_END)) |
3516 { | 3516 { |
3881 #endif | 3881 #endif |
3882 | 3882 |
3883 { | 3883 { |
3884 void *sft_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dsft.bin", 1) : nullptr, | 3884 void *sft_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dsft.bin", 1) : nullptr, |
3885 *sft_mm8 = nullptr; | 3885 *sft_mm8 = nullptr; |
3886 auto sft_mm7 = pEvents_LOD->LoadRaw("dsft.bin", 1); | 3886 void* sft_mm7 = pEvents_LOD->LoadRaw("dsft.bin", 1); |
3887 pSpriteFrameTable = new SpriteFrameTable; | 3887 pSpriteFrameTable = new SpriteFrameTable; |
3888 pSpriteFrameTable->FromFile(sft_mm6, sft_mm7, sft_mm8); | 3888 pSpriteFrameTable->FromFile(sft_mm6, sft_mm7, sft_mm8); |
3889 free(sft_mm6); | 3889 free(sft_mm6); |
3890 free(sft_mm7); | 3890 free(sft_mm7); |
3891 free(sft_mm8); | 3891 free(sft_mm8); |
3892 | 3892 |
3893 void *tft_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dtft.bin", 1) : nullptr, | 3893 void *tft_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dtft.bin", 1) : nullptr, |
3894 *tft_mm8 = nullptr; | 3894 *tft_mm8 = nullptr; |
3895 auto tft_mm7 = pEvents_LOD->LoadRaw("dtft.bin", 1); | 3895 void* tft_mm7 = pEvents_LOD->LoadRaw("dtft.bin", 1); |
3896 pTextureFrameTable = new TextureFrameTable; | 3896 pTextureFrameTable = new TextureFrameTable; |
3897 pTextureFrameTable->FromFile(tft_mm6, tft_mm7, tft_mm8); | 3897 pTextureFrameTable->FromFile(tft_mm6, tft_mm7, tft_mm8); |
3898 free(tft_mm6); | 3898 free(tft_mm6); |
3899 free(tft_mm7); | 3899 free(tft_mm7); |
3900 free(tft_mm8); | 3900 free(tft_mm8); |
3901 | 3901 |
3902 void *tiles_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dtile.bin", 1) : nullptr, | 3902 void *tiles_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dtile.bin", 1) : nullptr, |
3903 *tiles_mm8 = nullptr; | 3903 *tiles_mm8 = nullptr; |
3904 auto tiles_mm7 = pEvents_LOD->LoadRaw("dtile.bin", 1); | 3904 void* tiles_mm7 = pEvents_LOD->LoadRaw("dtile.bin", 1); |
3905 pTileTable = new TileTable; | 3905 pTileTable = new TileTable; |
3906 pTileTable->FromFile(tiles_mm6, tiles_mm7, tiles_mm8); | 3906 pTileTable->FromFile(tiles_mm6, tiles_mm7, tiles_mm8); |
3907 free(tiles_mm6); | 3907 free(tiles_mm6); |
3908 free(tiles_mm7); | 3908 free(tiles_mm7); |
3909 free(tiles_mm8); | 3909 free(tiles_mm8); |
3910 | 3910 |
3911 void *pft_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dpft.bin", 1) : nullptr, | 3911 void *pft_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dpft.bin", 1) : nullptr, |
3912 *pft_mm8 = nullptr; | 3912 *pft_mm8 = nullptr; |
3913 auto pft_mm7 = pEvents_LOD->LoadRaw("dpft.bin", 1); | 3913 void* pft_mm7 = pEvents_LOD->LoadRaw("dpft.bin", 1); |
3914 pPlayerFrameTable = new PlayerFrameTable; | 3914 pPlayerFrameTable = new PlayerFrameTable; |
3915 pPlayerFrameTable->FromFile(pft_mm6, pft_mm7, pft_mm8); | 3915 pPlayerFrameTable->FromFile(pft_mm6, pft_mm7, pft_mm8); |
3916 free(pft_mm6); | 3916 free(pft_mm6); |
3917 free(pft_mm7); | 3917 free(pft_mm7); |
3918 free(pft_mm8); | 3918 free(pft_mm8); |
3919 | 3919 |
3920 void *ift_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dift.bin", 1) : nullptr, | 3920 void *ift_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dift.bin", 1) : nullptr, |
3921 *ift_mm8 = nullptr; | 3921 *ift_mm8 = nullptr; |
3922 auto ift_mm7 = pEvents_LOD->LoadRaw("dift.bin", 1); | 3922 void* ift_mm7 = pEvents_LOD->LoadRaw("dift.bin", 1); |
3923 pIconsFrameTable = new IconFrameTable; | 3923 pIconsFrameTable = new IconFrameTable; |
3924 pIconsFrameTable->FromFile(ift_mm6, ift_mm7, ift_mm8); | 3924 pIconsFrameTable->FromFile(ift_mm6, ift_mm7, ift_mm8); |
3925 free(ift_mm6); | 3925 free(ift_mm6); |
3926 free(ift_mm7); | 3926 free(ift_mm7); |
3927 free(ift_mm8); | 3927 free(ift_mm8); |
3928 | 3928 |
3929 void *decs_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("ddeclist.bin", 1) : nullptr, | 3929 void *decs_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("ddeclist.bin", 1) : nullptr, |
3930 *decs_mm8 = nullptr; | 3930 *decs_mm8 = nullptr; |
3931 auto decs_mm7 = pEvents_LOD->LoadRaw("ddeclist.bin", 1); | 3931 void* decs_mm7 = pEvents_LOD->LoadRaw("ddeclist.bin", 1); |
3932 pDecorationList = new DecorationList; | 3932 pDecorationList = new DecorationList; |
3933 pDecorationList->FromFile(decs_mm6, decs_mm7, decs_mm8); | 3933 pDecorationList->FromFile(decs_mm6, decs_mm7, decs_mm8); |
3934 free(decs_mm6); | 3934 free(decs_mm6); |
3935 free(decs_mm7); | 3935 free(decs_mm7); |
3936 free(decs_mm8); | 3936 free(decs_mm8); |
3937 | 3937 |
3938 void *objs_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dobjlist.bin", 1) : nullptr, | 3938 void *objs_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dobjlist.bin", 1) : nullptr, |
3939 *objs_mm8 = nullptr; | 3939 *objs_mm8 = nullptr; |
3940 auto objs_mm7 = pEvents_LOD->LoadRaw("dobjlist.bin", 1); | 3940 void* objs_mm7 = pEvents_LOD->LoadRaw("dobjlist.bin", 1); |
3941 pObjectList = new ObjectList; | 3941 pObjectList = new ObjectList; |
3942 pObjectList->FromFile(objs_mm6, objs_mm7, objs_mm8); | 3942 pObjectList->FromFile(objs_mm6, objs_mm7, objs_mm8); |
3943 free(objs_mm6); | 3943 free(objs_mm6); |
3944 free(objs_mm7); | 3944 free(objs_mm7); |
3945 free(objs_mm8); | 3945 free(objs_mm8); |
3946 | 3946 |
3947 void *mons_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dmonlist.bin", 1) : nullptr, | 3947 void *mons_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dmonlist.bin", 1) : nullptr, |
3948 *mons_mm8 = nullptr; | 3948 *mons_mm8 = nullptr; |
3949 auto mons_mm7 = pEvents_LOD->LoadRaw("dmonlist.bin", 1); | 3949 void* mons_mm7 = pEvents_LOD->LoadRaw("dmonlist.bin", 1); |
3950 pMonsterList = new MonsterList; | 3950 pMonsterList = new MonsterList; |
3951 pMonsterList->FromFile(mons_mm6, mons_mm7, mons_mm8); | 3951 pMonsterList->FromFile(mons_mm6, mons_mm7, mons_mm8); |
3952 free(mons_mm6); | 3952 free(mons_mm6); |
3953 free(mons_mm7); | 3953 free(mons_mm7); |
3954 free(mons_mm8); | 3954 free(mons_mm8); |
3955 | 3955 |
3956 void *chests_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dchest.bin", 1) : nullptr, | 3956 void *chests_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dchest.bin", 1) : nullptr, |
3957 *chests_mm8 = nullptr; | 3957 *chests_mm8 = nullptr; |
3958 auto chests_mm7 = pEvents_LOD->LoadRaw("dchest.bin", 1); | 3958 void* chests_mm7 = pEvents_LOD->LoadRaw("dchest.bin", 1); |
3959 pChestList = new ChestList; | 3959 pChestList = new ChestList; |
3960 pChestList->FromFile(chests_mm6, chests_mm7, chests_mm8); | 3960 pChestList->FromFile(chests_mm6, chests_mm7, chests_mm8); |
3961 free(chests_mm6); | 3961 free(chests_mm6); |
3962 free(chests_mm7); | 3962 free(chests_mm7); |
3963 free(chests_mm8); | 3963 free(chests_mm8); |
3964 | 3964 |
3965 void *overlays_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("doverlay.bin", 1) : nullptr, | 3965 void *overlays_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("doverlay.bin", 1) : nullptr, |
3966 *overlays_mm8 = nullptr; | 3966 *overlays_mm8 = nullptr; |
3967 auto overlays_mm7 = pEvents_LOD->LoadRaw("doverlay.bin", 1); | 3967 void* overlays_mm7 = pEvents_LOD->LoadRaw("doverlay.bin", 1); |
3968 pOverlayList = new OverlayList; | 3968 pOverlayList = new OverlayList; |
3969 pOverlayList->FromFile(overlays_mm6, overlays_mm7, overlays_mm8); | 3969 pOverlayList->FromFile(overlays_mm6, overlays_mm7, overlays_mm8); |
3970 free(overlays_mm6); | 3970 free(overlays_mm6); |
3971 free(overlays_mm7); | 3971 free(overlays_mm7); |
3972 free(overlays_mm8); | 3972 free(overlays_mm8); |
3973 | 3973 |
3974 void *sounds_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dsounds.bin", 1) : nullptr, | 3974 void *sounds_mm6 = pIcons_LOD_mm6 ? pIcons_LOD_mm6->LoadRaw("dsounds.bin", 1) : nullptr, |
3975 *sounds_mm8 = nullptr; | 3975 *sounds_mm8 = nullptr; |
3976 auto sounds_mm7 = pEvents_LOD->LoadRaw("dsounds.bin", 1); | 3976 void* sounds_mm7 = pEvents_LOD->LoadRaw("dsounds.bin", 1); |
3977 pSoundList = new SoundList; | 3977 pSoundList = new SoundList; |
3978 pSoundList->FromFile(sounds_mm6, sounds_mm7, sounds_mm8); | 3978 pSoundList->FromFile(sounds_mm6, sounds_mm7, sounds_mm8); |
3979 free(sounds_mm6); | 3979 free(sounds_mm6); |
3980 free(sounds_mm7); | 3980 free(sounds_mm7); |
3981 free(sounds_mm8); | 3981 free(sounds_mm8); |
4370 FinalInitialization(); | 4370 FinalInitialization(); |
4371 | 4371 |
4372 Log::Warning(L"MM: entering main loop"); | 4372 Log::Warning(L"MM: entering main loop"); |
4373 while ( 1 ) | 4373 while ( 1 ) |
4374 { | 4374 { |
4375 auto main_menu_window = MainMenuWindow::Create(); | 4375 MainMenuWindow* main_menu_window = MainMenuWindow::Create(); |
4376 window->AddControl(main_menu_window); | 4376 window->AddControl(main_menu_window); |
4377 | 4377 |
4378 MainMenu_Loop(); | 4378 MainMenu_Loop(); |
4379 uGameState = GAME_STATE_PLAYING; | 4379 uGameState = GAME_STATE_PLAYING; |
4380 while ( 1 ) | 4380 while ( 1 ) |