Mercurial > mm7
comparison Render.cpp @ 1113:39eaa6b00141
something to bool cast (performance warning) mostly fixed
author | Grumpy7 |
---|---|
date | Tue, 28 May 2013 00:19:45 +0200 |
parents | cf6cd674c398 |
children | ad89d1905b48 |
comparison
equal
deleted
inserted
replaced
1112:4994eb3947ae | 1113:39eaa6b00141 |
---|---|
1927 unsigned int v75; // eax@158 | 1927 unsigned int v75; // eax@158 |
1928 //unsigned int v76; // [sp-10h] [bp-E0h]@61 | 1928 //unsigned int v76; // [sp-10h] [bp-E0h]@61 |
1929 int v77; // [sp-Ch] [bp-DCh]@61 | 1929 int v77; // [sp-Ch] [bp-DCh]@61 |
1930 IDirect3DTexture2 *v78; // [sp-8h] [bp-D8h]@61 | 1930 IDirect3DTexture2 *v78; // [sp-8h] [bp-D8h]@61 |
1931 //int v79; // [sp-4h] [bp-D4h]@61 | 1931 //int v79; // [sp-4h] [bp-D4h]@61 |
1932 int v80; // [sp+0h] [bp-D0h]@59 | 1932 bool v80; // [sp+0h] [bp-D0h]@59 |
1933 int v81; // [sp+0h] [bp-D0h]@109 | 1933 bool v81; // [sp+0h] [bp-D0h]@109 |
1934 int v82; // [sp+54h] [bp-7Ch]@1 | 1934 int v82; // [sp+54h] [bp-7Ch]@1 |
1935 int v83; // [sp+60h] [bp-70h]@1 | 1935 int v83; // [sp+60h] [bp-70h]@1 |
1936 int v84; // [sp+6Ch] [bp-64h]@1 | 1936 int v84; // [sp+6Ch] [bp-64h]@1 |
1937 int v85; // [sp+70h] [bp-60h]@63 | 1937 int v85; // [sp+70h] [bp-60h]@63 |
1938 float a4; // [sp+74h] [bp-5Ch]@73 | 1938 float a4; // [sp+74h] [bp-5Ch]@73 |
2296 } | 2296 } |
2297 else | 2297 else |
2298 { | 2298 { |
2299 if ( v57 & 2 && v40->uTileBitmapID == pRenderer->hd_water_tile_id ) | 2299 if ( v57 & 2 && v40->uTileBitmapID == pRenderer->hd_water_tile_id ) |
2300 { | 2300 { |
2301 v81 = 0; | 2301 v81 = false; |
2302 v58 = pRenderer->pHDWaterBitmapIDs[pRenderer->hd_water_current_frame]; | 2302 v58 = pRenderer->pHDWaterBitmapIDs[pRenderer->hd_water_current_frame]; |
2303 } | 2303 } |
2304 else | 2304 else |
2305 { | 2305 { |
2306 v58 = v40->uTileBitmapID; | 2306 v58 = v40->uTileBitmapID; |
2307 v81 = 1; | 2307 v81 = true; |
2308 } | 2308 } |
2309 pRenderer->DrawTerrainPolygon(v40->uNumVertices, v40, pBitmaps_LOD->pHardwareTextures[v58], 0, v81); | 2309 pRenderer->DrawTerrainPolygon(v40->uNumVertices, v40, pBitmaps_LOD->pHardwareTextures[v58], 0, v81); |
2310 } | 2310 } |
2311 LABEL_112: | 2311 LABEL_112: |
2312 v59 = &array_77EC08[pOutdoorCamera->numStru148s]; | 2312 v59 = &array_77EC08[pOutdoorCamera->numStru148s]; |
5918 } | 5918 } |
5919 bWindowMode = 0; | 5919 bWindowMode = 0; |
5920 pParty->uFlags |= 2u; | 5920 pParty->uFlags |= 2u; |
5921 LODWORD(flt_6BE3A0) = 0x3F0CCCCDu; | 5921 LODWORD(flt_6BE3A0) = 0x3F0CCCCDu; |
5922 pViewport->_4C02F8(36044); | 5922 pViewport->_4C02F8(36044); |
5923 return v15; | 5923 return v15 != 0; |
5924 } | 5924 } |
5925 // 6BE3A0: using guessed type float flt_6BE3A0; | 5925 // 6BE3A0: using guessed type float flt_6BE3A0; |
5926 | 5926 |
5927 //----- (004A05F3) -------------------------------------------------------- | 5927 //----- (004A05F3) -------------------------------------------------------- |
5928 bool Render::SwitchToWindow(HWND hWnd) | 5928 bool Render::SwitchToWindow(HWND hWnd) |
10649 | 10649 |
10650 //----- (004667E9) -------------------------------------------------------- | 10650 //----- (004667E9) -------------------------------------------------------- |
10651 void Render::ChangeBetweenWinFullscreenModes() | 10651 void Render::ChangeBetweenWinFullscreenModes() |
10652 { | 10652 { |
10653 float v0; // ST14_4@17 | 10653 float v0; // ST14_4@17 |
10654 int v1; // edx@24 | 10654 bool v1; // edx@24 |
10655 signed int v2; // ecx@24 | 10655 signed int v2; // ecx@24 |
10656 int v3; // esi@25 | 10656 int v3; // esi@25 |
10657 int v4; // edx@26 | 10657 int v4; // edx@26 |
10658 ObjectDesc *v5; // eax@26 | 10658 ObjectDesc *v5; // eax@26 |
10659 RGBTexture *v6; // esi@33 | 10659 RGBTexture *v6; // esi@33 |
10731 BYTE3(v4) = 0; | 10731 BYTE3(v4) = 0; |
10732 v5 = &pObjectList->pObjects[v3]; | 10732 v5 = &pObjectList->pObjects[v3]; |
10733 ++v3; | 10733 ++v3; |
10734 *(short *)((char *)&v4 + 1) = v5->uParticleTrailColorR; | 10734 *(short *)((char *)&v4 + 1) = v5->uParticleTrailColorR; |
10735 LOBYTE(v4) = v5->uParticleTrailColorG; | 10735 LOBYTE(v4) = v5->uParticleTrailColorG; |
10736 v1 = v5->uParticleTrailColorB | (v4 << 8); | 10736 v5->uParticleTrailColor = v5->uParticleTrailColorB | (v4 << 8); |
10737 ++v2; | 10737 ++v2; |
10738 v5->uParticleTrailColor = v1; | |
10739 } | 10738 } |
10740 while ( v2 < (signed int)pObjectList->uNumObjects ); | 10739 while ( v2 < (signed int)pObjectList->uNumObjects ); |
10741 } | 10740 } |
10742 LOBYTE(v1) = 1; | 10741 LOBYTE(v1) = 1; |
10743 SetUserInterface(pParty->alignment, v1); | 10742 SetUserInterface(pParty->alignment, v1); |