Mercurial > mm7
diff 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 |
line wrap: on
line diff
--- a/Render.cpp Mon May 27 23:29:39 2013 +0200 +++ b/Render.cpp Tue May 28 00:19:45 2013 +0200 @@ -1929,8 +1929,8 @@ int v77; // [sp-Ch] [bp-DCh]@61 IDirect3DTexture2 *v78; // [sp-8h] [bp-D8h]@61 //int v79; // [sp-4h] [bp-D4h]@61 - int v80; // [sp+0h] [bp-D0h]@59 - int v81; // [sp+0h] [bp-D0h]@109 + bool v80; // [sp+0h] [bp-D0h]@59 + bool v81; // [sp+0h] [bp-D0h]@109 int v82; // [sp+54h] [bp-7Ch]@1 int v83; // [sp+60h] [bp-70h]@1 int v84; // [sp+6Ch] [bp-64h]@1 @@ -2298,13 +2298,13 @@ { if ( v57 & 2 && v40->uTileBitmapID == pRenderer->hd_water_tile_id ) { - v81 = 0; + v81 = false; v58 = pRenderer->pHDWaterBitmapIDs[pRenderer->hd_water_current_frame]; } else { v58 = v40->uTileBitmapID; - v81 = 1; + v81 = true; } pRenderer->DrawTerrainPolygon(v40->uNumVertices, v40, pBitmaps_LOD->pHardwareTextures[v58], 0, v81); } @@ -5920,7 +5920,7 @@ pParty->uFlags |= 2u; LODWORD(flt_6BE3A0) = 0x3F0CCCCDu; pViewport->_4C02F8(36044); - return v15; + return v15 != 0; } // 6BE3A0: using guessed type float flt_6BE3A0; @@ -10651,7 +10651,7 @@ void Render::ChangeBetweenWinFullscreenModes() { float v0; // ST14_4@17 - int v1; // edx@24 + bool v1; // edx@24 signed int v2; // ecx@24 int v3; // esi@25 int v4; // edx@26 @@ -10733,9 +10733,8 @@ ++v3; *(short *)((char *)&v4 + 1) = v5->uParticleTrailColorR; LOBYTE(v4) = v5->uParticleTrailColorG; - v1 = v5->uParticleTrailColorB | (v4 << 8); + v5->uParticleTrailColor = v5->uParticleTrailColorB | (v4 << 8); ++v2; - v5->uParticleTrailColor = v1; } while ( v2 < (signed int)pObjectList->uNumObjects ); }