changeset 740:14cf77af15de

m
author Ritor1
date Fri, 22 Mar 2013 19:58:47 +0600
parents e0a8cc28caeb
children cd9ae9a2c99c
files Render.cpp mm7_4.cpp
diffstat 2 files changed, 10 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/Render.cpp	Fri Mar 22 09:14:45 2013 +0600
+++ b/Render.cpp	Fri Mar 22 19:58:47 2013 +0600
@@ -8304,13 +8304,13 @@
       v28 = stru_5C6E00->Cos(angle);
       pBillboardRenderListD3D[v8].pQuards[1].pos.x = (((double)(unsigned __int16)v25 * 0.000015259022
                                                        + (double)(v25 >> 16))
-                                                       * v23
+                                                       * v31
                                                        - ((double)(unsigned __int16)v26 * 0.000015259022
                                                        + (double)(v26 >> 16))
-                                                       * v24)
+                                                       * v32)
                                                        * v11 + v13;
-      v29 = (((double)(unsigned __int16)v28 * 0.000015259022 + (double)(v28 >> 16)) * v24
-           + ((double)(unsigned __int16)v27 * 0.000015259022 + (double)(v27 >> 16)) * v23
+      v29 = (((double)(unsigned __int16)v28 * 0.000015259022 + (double)(v28 >> 16)) * v32
+           + ((double)(unsigned __int16)v27 * 0.000015259022 + (double)(v27 >> 16)) * v31
            - 12.0)
           * v11
           + (double)a2->uScreenSpaceY;
@@ -8330,14 +8330,14 @@
       v36 = stru_5C6E00->Cos(angle);
       pBillboardRenderListD3D[v8].pQuards[2].pos.x = (((double)(unsigned __int16)v33 * 0.000015259022
                                                         + (double)(v33 >> 16))
-                                                        * v31
+                                                        * v23
                                                         - ((double)(unsigned __int16)v34 * 0.000015259022
                                                         + (double)(v34 >> 16))
-                                                        * v32)
+                                                        * v24)
                                                         * v11 + v13;
       v37 = pBillboardRenderListD3D[v8].pQuards[0].pos.z;
-      v38 = (((double)(unsigned __int16)v36 * 0.000015259022 + (double)(v36 >> 16)) * v32
-           + ((double)(unsigned __int16)v35 * 0.000015259022 + (double)(v35 >> 16)) * v31
+      v38 = (((double)(unsigned __int16)v36 * 0.000015259022 + (double)(v36 >> 16)) * v24
+           + ((double)(unsigned __int16)v35 * 0.000015259022 + (double)(v35 >> 16)) * v23
            - 12.0)
           * v11
           + (double)a2->uScreenSpaceY;
--- a/mm7_4.cpp	Fri Mar 22 09:14:45 2013 +0600
+++ b/mm7_4.cpp	Fri Mar 22 19:58:47 2013 +0600
@@ -540,6 +540,8 @@
                   if ( v19 != 3 )
                   {
                     if ( !v19 )
+                      ++v48;
+                    else
                     {
                       LODWORD(v23) = (Y - word_720F70[i]) << 16;
                       HIDWORD(v23) = (Y - word_720F70[i]) >> 16;