diff ParticleEngine.cpp @ 693:e0a1fccc89b1

map render fixes
author Gloval
date Sun, 17 Mar 2013 01:50:34 +0400
parents 1b813023fcbd
children 710cf848ad24
line wrap: on
line diff
--- a/ParticleEngine.cpp	Sat Mar 16 21:57:32 2013 +0400
+++ b/ParticleEngine.cpp	Sun Mar 17 01:50:34 2013 +0400
@@ -577,14 +577,14 @@
       v6->_screenspace_scale = (unsigned __int64)(_48B561_mess_with_scaling_along_z(/*v34, */v35) * (signed __int64)v6->_screenspace_scale) >> 16;
       v6->sZValue = X_4;
       v36 = v6->uScreenSpaceX;
-      if ( v36 >= (signed int)pViewport->uViewportX )
+      if ( v36 >= (signed int)pViewport->uViewportTL_X )
       {
-        if ( v36 < (signed int)pViewport->uViewportZ )
+        if ( v36 < (signed int)pViewport->uViewportBR_X )
         {
           v37 = v6->uScreenSpaceY;
-          if ( v37 >= (signed int)pViewport->uViewportY )
+          if ( v37 >= (signed int)pViewport->uViewportTL_Y )
           {
-            if ( v37 < (signed int)pViewport->uViewportW )
+            if ( v37 < (signed int)pViewport->uViewportBR_Y )
               return 1;
           }
         }
@@ -686,10 +686,10 @@
                        v11 = 30;
                     v12 = p->uScreenSpaceY - v11;
                     v13 = p->uScreenSpaceX - (v11 >> 1);
-                     if ( v13 + v11 < (signed int)pViewport->uViewportX
-                       || v13 >= (signed int)pViewport->uViewportZ
-                       || v12 + v11 < (signed int)pViewport->uViewportY
-                       || v12 >= (signed int)pViewport->uViewportW )
+                     if ( v13 + v11 < (signed int)pViewport->uViewportTL_X
+                       || v13 >= (signed int)pViewport->uViewportBR_X
+                       || v12 + v11 < (signed int)pViewport->uViewportTL_Y
+                       || v12 >= (signed int)pViewport->uViewportBR_Y )
                      {
                       ;
                      }
@@ -801,10 +801,10 @@
             v10 = 30;
           v11 = *(_DWORD *)(v7 - 18) - (v10 >> 1);
           v12 = *(_DWORD *)(v7 - 14) - v10;
-          if ( v11 + v10 < pViewport->uViewportX
-            || v11 >= pViewport->uViewportZ
-            || *(_DWORD *)(v7 - 14) < pViewport->uViewportY
-            || v12 >= (signed int)pViewport->uViewportW )
+          if ( v11 + v10 < pViewport->uViewportTL_X
+            || v11 >= pViewport->uViewportBR_X
+            || *(_DWORD *)(v7 - 14) < pViewport->uViewportTL_Y
+            || v12 >= (signed int)pViewport->uViewportBR_Y )
           {
             ;
           }