comparison Weather.cpp @ 693:e0a1fccc89b1

map render fixes
author Gloval
date Sun, 17 Mar 2013 01:50:34 +0400
parents 066e2b29b30f
children 0aeac0b9ca30
comparison
equal deleted inserted replaced
692:066e2b29b30f 693:e0a1fccc89b1
179 v2 = 0; 179 v2 = 0;
180 v3 = pViewport->uScreen_BR_X - pViewport->uScreen_TL_X - 4; 180 v3 = pViewport->uScreen_BR_X - pViewport->uScreen_TL_X - 4;
181 v4 = pViewport->uScreen_BR_Y - pViewport->uScreen_TL_Y - 4; 181 v4 = pViewport->uScreen_BR_Y - pViewport->uScreen_TL_Y - 4;
182 do 182 do
183 { 183 {
184 v1->field_0[2 * v2++] = LOWORD(pViewport->uViewportX) + rand() % v3; 184 v1->field_0[2 * v2++] = LOWORD(pViewport->uViewportTL_X) + rand() % v3;
185 *((short *)v1 + 2 * v2 - 1) = LOWORD(pViewport->uViewportY) + rand() % v4; 185 *((short *)v1 + 2 * v2 - 1) = LOWORD(pViewport->uViewportTL_Y) + rand() % v4;
186 } 186 }
187 while ( v2 < 1000 ); 187 while ( v2 < 1000 );
188 return 0; 188 return 0;
189 } 189 }
190 190