changeset 1155:38662d9c8be8

Render::DrawProjectile restoring original function beginning
author Grumpy7
date Mon, 03 Jun 2013 04:49:34 +0200
parents d8b455c81917
children bca3f865990b
files Render.cpp
diffstat 1 files changed, 13 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/Render.cpp	Sun Jun 02 17:06:38 2013 +0200
+++ b/Render.cpp	Mon Jun 03 04:49:34 2013 +0200
@@ -8466,11 +8466,11 @@
 
   *(float *)&X = dstX - srcX;
   v30 = *(float *)&X + 6.7553994e15;
-  v31 = LODWORD(v30);
+  *(float *)&v31 = v30;
   *(float *)&v32 = dstY - srcY;
   v30 = *(float *)&v32 + 6.7553994e15;
-  X = LODWORD(v30);
-  HIDWORD(v30) = abs(COERCE_UNSIGNED_INT64(*(float *)&v32 + 6.7553994e15));
+  *(float *)&X = v30;
+  HIDWORD(v30) = abs(*(__int64 *)&v30);
   v10 = abs(v31);
   v32 = v10;
   v11 = HIDWORD(v30);
@@ -8520,18 +8520,14 @@
   v23 = *(float *)&v31 * a8;
   a4a = v23;
   v29[1].pos.y = dstY - v23;
-  v24 = a7;
   if ( uCurrentlyLoadedLevelType == LEVEL_Outdoor )
-    v25 = v24 * 1000.0 / (double)pOutdoorCamera->shading_dist_mist;
+    v25 = a7 * 1000.0 / (double)pOutdoorCamera->shading_dist_mist;
   else
-    v25 = v24 * 0.061758894;
-  v29[2].diffuse = -1;
-  v29[3].diffuse = -1;
-  *(_QWORD *)&v29[3].pos.z = __PAIR__(HIDWORD(v30), LODWORD(v29[0].pos.z));
+    v25 = a7 * 0.061758894;
+  v29[3].pos.z = v29[0].pos.z;
+  v29[3].rhw = v21;
   v29[1].diffuse = -16711936;
   v29[1].specular = 0;
-  v29[2].specular = 0;
-  v29[3].specular = 0;
   v26 = 1.0 - 1.0 / v25;
   v29[1].pos.z = v26;
   v27 = v26;
@@ -8539,12 +8535,18 @@
   v29[1].rhw = v28;
   v29[1].texcoord.x = 1.0;
   v29[1].texcoord.y = 1.0;
+
+  v29[2].diffuse = -1;
+  v29[2].specular = 0;
   v29[2].pos.x = dstX - a3a;
   v29[2].pos.y = a4a + dstY;
   v29[2].pos.z = v27;
   v29[2].rhw = v28;
   v29[2].texcoord.x = 0.0;
   v29[2].texcoord.y = 1.0;
+
+  v29[3].diffuse = -1;
+  v29[3].specular = 0;
   v29[3].pos.x = srcX - v17;
   v29[3].pos.y = v18 + srcY;
   v29[3].texcoord.x = 0.0;