Mercurial > might-and-magic-trilogy
changeset 40:001b45e84aaa
Слияние
author | Ritor1 |
---|---|
date | Thu, 18 Oct 2012 09:12:15 +0600 |
parents | e19e48280ca0 (current diff) 4723e86bc51c (diff) |
children | fd64b06a39a8 1265125099c7 |
files | |
diffstat | 2 files changed, 7 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/mm7_2.cpp Thu Oct 18 09:12:00 2012 +0600 +++ b/mm7_2.cpp Thu Oct 18 09:12:15 2012 +0600 @@ -14070,8 +14070,8 @@ HWND v6; // eax@4 int v8; // eax@15 //bool v9; // edx@16 - OtherOverlay *v10; // esi@44 - signed int v11; // edi@44 + //OtherOverlay *v10; // esi@44 + //signed int v11; // edi@44 unsigned int v12; // ecx@56 HANDLE v13; // eax@68 unsigned int startms; // [sp+8h] [bp-24h]@55 @@ -14162,15 +14162,10 @@ if ( pAudioPlayer->hAILRedbook ) AIL_redbook_stop(pAudioPlayer->hAILRedbook); pParty->Reset(); - v10 = (OtherOverlay *)&pOtherOverlayList; - v11 = 50; - do - { - v10->Reset(); - ++v10; - --v11; - } - while ( v11 ); + + for (uint k = 0; k < 50; ++k) + pOtherOverlayList->pOverlays[k].Reset(); + strcpy(pCurrentMapName, pStartingMapName); pParty->CreateDefaultParty(0); PlayerCreationUI_Initialize();
--- a/mm7_4.cpp Thu Oct 18 09:12:00 2012 +0600 +++ b/mm7_4.cpp Thu Oct 18 09:12:15 2012 +0600 @@ -5923,7 +5923,7 @@ pTexture_MAKESKY = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture("MAKESKY", TEXTURE_16BIT_PALETTE)]; do { - sprintfex(pTmpBuf, "%s01", pPlayerPortraitsNames[uX]); + sprintf(pTmpBuf, "%s01", pPlayerPortraitsNames[uX]); v1 = pIcons_LOD->LoadTexture(pTmpBuf, TEXTURE_16BIT_PALETTE); v2 = uX * 4; ++uX;