comparison Render.cpp @ 1983:5cd26f2c6904

small fix
author Ritor1
date Fri, 01 Nov 2013 17:29:49 +0600
parents 2647e2f820a6
children ef4dcee1b4a1
comparison
equal deleted inserted replaced
1982:2647e2f820a6 1983:5cd26f2c6904
5366 if ( SLODWORD(v73) > 0 ) 5366 if ( SLODWORD(v73) > 0 )
5367 { 5367 {
5368 v51 = (double)SLODWORD(v80); 5368 v51 = (double)SLODWORD(v80);
5369 v75 = array_507D30; 5369 v75 = array_507D30;
5370 v52 = array_50AC10; 5370 v52 = array_50AC10;
5371 v80 = v73; 5371 for ( v80 = v73; v80; --v80 )
5372 do
5373 { 5372 {
5374 if ( v51 <= v52->vWorldViewProjY ) 5373 if ( v51 <= v52->vWorldViewProjY )
5375 { 5374 {
5376 v53 = v75; 5375 v53 = v75;
5377 ++v74; 5376 ++v74;
5378 ++v75; 5377 ++v75;
5379 memcpy(v53, v52, 0x30u); 5378 memcpy(v53, v52, 0x30u);
5380 } 5379 }
5381 ++v52; 5380 ++v52;
5382 --LODWORD(v80); 5381 //--LODWORD(v80);
5383 } 5382 }
5384 while ( v80 != 0.0 ); 5383 //while ( v80 != 0.0 );
5385 } 5384 }
5386 pSkyPolygon.uNumVertices = v74; 5385 pRenderer->DrawIndoorSkyPolygon(v74, &pSkyPolygon, pBitmaps_LOD->pHardwareTextures[(signed __int16)pSkyPolygon.uTileBitmapID]);
5387 v61 = pBitmaps_LOD->pHardwareTextures[(signed __int16)pSkyPolygon.uTileBitmapID];
5388 v60 = &pSkyPolygon;
5389 v59 = v74;
5390 //v27 = pRenderer;
5391 //LABEL_18:
5392 pRenderer->DrawIndoorSkyPolygon(v59, v60, v61);
5393 } 5386 }
5394 5387
5395 5388
5396 //----- (004A2FC0) -------------------------------------------------------- 5389 //----- (004A2FC0) --------------------------------------------------------
5397 void Render::DrawIndoorPolygon(unsigned int uNumVertices, BLVFace *pFace, IDirect3DTexture2 *pHwTex, Texture *pTex, int uPackedID, unsigned int uColor, int a8) 5390 void Render::DrawIndoorPolygon(unsigned int uNumVertices, BLVFace *pFace, IDirect3DTexture2 *pHwTex, Texture *pTex, int uPackedID, unsigned int uColor, int a8)