diff ParticleEngine.cpp @ 49:5a08b193507f

22.01.13
author Ritor1
date Tue, 22 Jan 2013 17:37:50 +0600
parents a9e9c6989d04
children 2ee78ed62d37
line wrap: on
line diff
--- a/ParticleEngine.cpp	Mon Jan 21 14:37:14 2013 +0600
+++ b/ParticleEngine.cpp	Tue Jan 22 17:37:50 2013 +0600
@@ -748,11 +748,7 @@
             v14.uScreenSpaceX = v13->uScreenSpaceX;
             v14.uScreenSpaceY = v13->uScreenSpaceY;
             v14.sZValue = v13->sZValue;
-            pRenderer->MakeParticleBillboardAndPush_ODM(
-              &v14,
-              0,
-              v13->uLightColor,
-              v13->_rotation);
+            pRenderer->MakeParticleBillboardAndPush_ODM(&v14, 0, v13->uLightColor, v13->_rotation);
             return;
           }
           if ( BYTE1(v8) & 2 )
@@ -763,11 +759,7 @@
               v1->pLines.pLineVertices[2 * v9].pos.x = (double)*(signed int *)(v7 - 18);
               v1->pLines.pLineVertices[2 * v1->pLines.uNumLines].pos.y = (double)*(signed int *)(v7 - 14);
               v15 = *(short *)v7;
-              v1->pLines.pLineVertices[2 * v1->pLines.uNumLines].pos.z = 1.0
-                                                                       - 1.0
-                                                                       / ((double)v15
-                                                                        * 1000.0
-                                                                        / (double)pOutdoorCamera->shading_dist_mist);
+              v1->pLines.pLineVertices[2 * v1->pLines.uNumLines].pos.z = 1.0 - 1.0 / ((double)v15 * 1000.0 / (double)pOutdoorCamera->shading_dist_mist);
               v1->pLines.pLineVertices[2 * v1->pLines.uNumLines].rhw = 1.0;
               v1->pLines.pLineVertices[2 * v1->pLines.uNumLines].diffuse = *(int *)(v7 + 18);
               v1->pLines.pLineVertices[2 * v1->pLines.uNumLines].specular = 0;
@@ -776,11 +768,7 @@
               v1->pLines.pLineVertices[2 * v1->pLines.uNumLines + 1].pos.x = (double)*(signed int *)(v7 - 10);
               v1->pLines.pLineVertices[2 * v1->pLines.uNumLines + 1].pos.y = (double)*(signed int *)(v7 - 6);
               v15 = *(short *)v7;
-              v1->pLines.pLineVertices[2 * v1->pLines.uNumLines + 1].pos.z = 1.0
-                                                                           - 1.0
-                                                                           / ((double)v15
-                                                                            * 1000.0
-                                                                            / (double)pOutdoorCamera->shading_dist_mist);
+              v1->pLines.pLineVertices[2 * v1->pLines.uNumLines + 1].pos.z = 1.0 - 1.0 / ((double)v15 * 1000.0 / (double)pOutdoorCamera->shading_dist_mist);
               v1->pLines.pLineVertices[2 * v1->pLines.uNumLines + 1].rhw = 1.0;
               v1->pLines.pLineVertices[2 * v1->pLines.uNumLines + 1].diffuse = *(int *)(v7 + 18);
               v1->pLines.pLineVertices[2 * v1->pLines.uNumLines + 1].specular = 0;
@@ -795,11 +783,7 @@
             v14.uScreenSpaceX = *(int *)(v7 - 18);
             v14.uScreenSpaceY = *(int *)(v7 - 14);
             v14.sZValue = *(int *)(v7 - 2);
-            pRenderer->MakeParticleBillboardAndPush_ODM(
-              &v14,
-              pBitmaps_LOD->pHardwareTextures[*(int *)(v7 - 46)],
-              *(int *)(v7 + 18),
-              *(int *)(v7 - 22));
+            pRenderer->MakeParticleBillboardAndPush_ODM(&v14, pBitmaps_LOD->pHardwareTextures[*(int *)(v7 - 46)], *(int *)(v7 + 18), *(int *)(v7 - 22));
           }
           if ( *(v7 - 81) & 8 )
           {
@@ -808,10 +792,7 @@
             v14.uScreenSpaceX = *(int *)(v7 - 18);
             v14.uScreenSpaceY = *(int *)(v7 - 14);
             v14.sZValue = *(int *)(v7 - 2);
-            pRenderer->MakeParticleBillboardAndPush_ODM(
-              &v14,
-              pSprites_LOD->pHardwareSprites[*(int *)(v7 - 46)].pTexture,
-              *(int *)(v7 + 18),
+            pRenderer->MakeParticleBillboardAndPush_ODM(&v14, pSprites_LOD->pHardwareSprites[*(int *)(v7 - 46)].pTexture, *(int *)(v7 + 18),
               *(int *)(v7 - 22));
           }
         }