Mercurial > mm7
comparison mm7_3.cpp @ 33:a9e9c6989d04
20.01.13
author | Ritor1 |
---|---|
date | Sun, 20 Jan 2013 18:57:23 +0600 |
parents | 9c0607679772 |
children | aac67e0d2c10 |
comparison
equal
deleted
inserted
replaced
32:4c90ae1041aa | 33:a9e9c6989d04 |
---|---|
5037 if ( pAutonoteTXT_Raw ) | 5037 if ( pAutonoteTXT_Raw ) |
5038 pAllocator->FreeChunk(pAutonoteTXT_Raw); | 5038 pAllocator->FreeChunk(pAutonoteTXT_Raw); |
5039 pAutonoteTXT_Raw = 0; | 5039 pAutonoteTXT_Raw = 0; |
5040 pAutonoteTXT_Raw = (char *)pEvents_LOD->LoadRaw("autonote.txt", 0); | 5040 pAutonoteTXT_Raw = (char *)pEvents_LOD->LoadRaw("autonote.txt", 0); |
5041 strtok(pAutonoteTXT_Raw, "\r"); | 5041 strtok(pAutonoteTXT_Raw, "\r"); |
5042 v0 = (char *)&stru_723720[0].eType; | 5042 v0 = (char *)&pAutonoteTxt[0].eType; |
5043 for (uint i = 0; i < 195; ++i) | 5043 for (uint i = 0; i < 195; ++i) |
5044 { | 5044 { |
5045 v1 = 0; | 5045 v1 = 0; |
5046 v2 = strtok(0, "\r") + 1; | 5046 v2 = strtok(0, "\r") + 1; |
5047 v6 = 0; | 5047 v6 = 0; |
13924 | 13924 |
13925 for (uint i = 0; i < uNumBlueFacesInBLVMinimap; ++i) | 13925 for (uint i = 0; i < uNumBlueFacesInBLVMinimap; ++i) |
13926 { | 13926 { |
13927 //v16 = (uint *)&pIndoor->pMapOutlines->pOutlines[pBlueFacesInBLVMinimapIDs[uZb]]; | 13927 //v16 = (uint *)&pIndoor->pMapOutlines->pOutlines[pBlueFacesInBLVMinimapIDs[uZb]]; |
13928 auto pOutline = &pIndoor->pMapOutlines->pOutlines[pBlueFacesInBLVMinimapIDs[i]]; | 13928 auto pOutline = &pIndoor->pMapOutlines->pOutlines[pBlueFacesInBLVMinimapIDs[i]]; |
13929 pRenderer->Line2D( | 13929 pRenderer->Line2D(uCenterX + ((signed int)(((unsigned int)((unsigned __int64)((signed int)uZoom |
13930 uCenterX | |
13931 + ((signed int)(((unsigned int)((unsigned __int64)((signed int)uZoom | |
13932 * (signed __int64)pIndoor->pVertices[pOutline->uVertex1ID].x) >> 16) << 16) | 13930 * (signed __int64)pIndoor->pVertices[pOutline->uVertex1ID].x) >> 16) << 16) |
13933 - uZoom * pParty->vPosition.x) >> 16), | 13931 - uZoom * pParty->vPosition.x) >> 16), |
13934 uCenterY | 13932 uCenterY |
13935 - ((signed int)(((unsigned int)((unsigned __int64)((signed int)uZoom | 13933 - ((signed int)(((unsigned int)((unsigned __int64)((signed int)uZoom |
13936 * (signed __int64)pIndoor->pVertices[pOutline->uVertex1ID].y) >> 16) << 16) | 13934 * (signed __int64)pIndoor->pVertices[pOutline->uVertex1ID].y) >> 16) << 16) |
13997 { | 13995 { |
13998 v57 = 2; | 13996 v57 = 2; |
13999 } | 13997 } |
14000 v35 = v57; | 13998 v35 = v57; |
14001 LABEL_66: | 13999 LABEL_66: |
14002 pRenderer->DrawTextureTransparent( | 14000 pRenderer->DrawTextureTransparent(uCenterX - 3, uCenterY - 3, |
14003 uCenterX - 3, | |
14004 uCenterY - 3, | |
14005 (Texture *)(pTextureIDs_pMapDirs[v35] != -1 ? (int)&pIcons_LOD->pTextures[pTextureIDs_pMapDirs[v35]] : 0)); | 14001 (Texture *)(pTextureIDs_pMapDirs[v35] != -1 ? (int)&pIcons_LOD->pTextures[pTextureIDs_pMapDirs[v35]] : 0)); |
14006 v36 = 255; | 14002 v36 = 255; |
14007 flagsb = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0, 0xFFu); | 14003 flagsb = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0, 0xFFu); |
14008 v60 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0, 0); | 14004 v60 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0, 0); |
14009 if ( bWizardEyeActive ) | 14005 if ( bWizardEyeActive ) |
14166 lPitchb = v45; | 14162 lPitchb = v45; |
14167 } | 14163 } |
14168 while ( uZg < (signed int)uNumLevelDecorations ); | 14164 while ( uZg < (signed int)uNumLevelDecorations ); |
14169 v33 = 0; | 14165 v33 = 0; |
14170 } | 14166 } |
14171 pRenderer->DrawTextureTransparent( | 14167 pRenderer->DrawTextureTransparent(0x1D4u, v33, (Texture *)(dword_5079D8 != -1 ? &pIcons_LOD->pTextures[dword_5079D8] : 0)); |
14172 0x1D4u, | |
14173 v33, | |
14174 (Texture *)(dword_5079D8 != -1 ? &pIcons_LOD->pTextures[dword_5079D8] : 0)); | |
14175 uZooma = (double)pParty->sRotationY * 0.1171875; | 14168 uZooma = (double)pParty->sRotationY * 0.1171875; |
14176 v50 = uZooma + 6.7553994e15; | 14169 v50 = uZooma + 6.7553994e15; |
14177 pRenderer->Clip(0x21Du, v33, 0x237u, 0x1E0u); | 14170 pRenderer->Clip(0x21Du, v33, 0x237u, 0x1E0u); |
14178 pRenderer->DrawTextureIndexed( | 14171 pRenderer->DrawTextureIndexed(LODWORD(v50) + 285, 0x88u, (Texture *)(dword_5079B4 != -1 ? &pIcons_LOD->pTextures[dword_5079B4] : 0)); |
14179 LODWORD(v50) + 285, | |
14180 0x88u, | |
14181 (Texture *)(dword_5079B4 != -1 ? &pIcons_LOD->pTextures[dword_5079B4] : 0)); | |
14182 pRenderer->ResetClip(); | 14172 pRenderer->ResetClip(); |
14183 } | 14173 } |
14184 | 14174 |
14185 | 14175 |
14186 //----- (00442955) -------------------------------------------------------- | 14176 //----- (00442955) -------------------------------------------------------- |
18152 ptr_507BC0->CreateButton(0x124u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 3u, 0x33u, "", 0); | 18142 ptr_507BC0->CreateButton(0x124u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 3u, 0x33u, "", 0); |
18153 ptr_507BC0->CreateButton(0x197u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 4u, 0x34u, "", 0); | 18143 ptr_507BC0->CreateButton(0x197u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 4u, 0x34u, "", 0); |
18154 ptr_507BC0->CreateButton(0, 0, 0, 0, 1, 0, 0xB0u, 0, 9u, "", 0); | 18144 ptr_507BC0->CreateButton(0, 0, 0, 0, 1, 0, 0xB0u, 0, 9u, "", 0); |
18155 } | 18145 } |
18156 goto LABEL_291; | 18146 goto LABEL_291; |
18157 default: | |
18158 goto LABEL_291; | |
18159 case EVENT_PressAnyKey: | 18147 case EVENT_PressAnyKey: |
18160 v121 = 33; | 18148 v121 = 33; |
18161 v105 = v122 + 1; | 18149 v105 = v122 + 1; |
18162 goto LABEL_295; | 18150 goto LABEL_295; |
18163 case EVENT_Exit: | 18151 case EVENT_Exit: |
18164 goto LABEL_301; | 18152 goto LABEL_301; |
18153 default: | |
18154 goto LABEL_291; | |
18165 } | 18155 } |
18166 } | 18156 } |
18167 //++v4; | 18157 //++v4; |
18168 //v124 = v4; | 18158 //v124 = v4; |
18169 //if ( v4 >= (signed int)uSomeEVT_NumEvents ) | 18159 //if ( v4 >= (signed int)uSomeEVT_NumEvents ) |
18616 { | 18606 { |
18617 v9 = -(*((short *)v4 + 4) != 0); | 18607 v9 = -(*((short *)v4 + 4) != 0); |
18618 v8 = (v9 & 0x7E900) + 86400; | 18608 v8 = (v9 & 0x7E900) + 86400; |
18619 } | 18609 } |
18620 } | 18610 } |
18621 v10 = __PAIR__(v7, *((int *)v4 - 3)) + (signed __int64)((double)((signed __int64)v8 << 7) * 0.033333335); | 18611 v10 = v7 + *((int *)v4 - 3) + (signed __int64)((double)((signed __int64)v8 << 7) * 0.033333335);//v10 = __PAIR__(v7, *((int *)v4 - 3)) + (signed __int64)((double)((signed __int64)v8 << 7) * 0.033333335); |
18622 *((int *)v4 - 3) = v10; | 18612 *((int *)v4 - 3) = v10; |
18623 *((int *)v4 - 2) = HIDWORD(v10); | 18613 *((int *)v4 - 2) = HIDWORD(v10); |
18624 if ( HIDWORD(v10) <= v3 && (HIDWORD(v10) < v3 || *((int *)v4 - 3) < v2) ) | 18614 if ( HIDWORD(v10) <= v3 && (HIDWORD(v10) < v3 || *((int *)v4 - 3) < v2) ) |
18625 { | 18615 { |
18626 *((int *)v4 - 3) = v2; | 18616 *((int *)v4 - 3) = v2; |