diff Weather.cpp @ 693:e0a1fccc89b1

map render fixes
author Gloval
date Sun, 17 Mar 2013 01:50:34 +0400
parents 066e2b29b30f
children 0aeac0b9ca30
line wrap: on
line diff
--- a/Weather.cpp	Sat Mar 16 21:57:32 2013 +0400
+++ b/Weather.cpp	Sun Mar 17 01:50:34 2013 +0400
@@ -181,8 +181,8 @@
   v4 = pViewport->uScreen_BR_Y - pViewport->uScreen_TL_Y - 4;
   do
   {
-    v1->field_0[2 * v2++] = LOWORD(pViewport->uViewportX) + rand() % v3;
-    *((short *)v1 + 2 * v2 - 1) = LOWORD(pViewport->uViewportY) + rand() % v4;
+    v1->field_0[2 * v2++] = LOWORD(pViewport->uViewportTL_X) + rand() % v3;
+    *((short *)v1 + 2 * v2 - 1) = LOWORD(pViewport->uViewportTL_Y) + rand() % v4;
   }
   while ( v2 < 1000 );
   return 0;