Mercurial > mm7
comparison Weather.cpp @ 692:066e2b29b30f
viewport.cpp added
author | Gloval |
---|---|
date | Sat, 16 Mar 2013 21:57:32 +0400 |
parents | 1f0af5cac2dd |
children | e0a1fccc89b1 |
comparison
equal
deleted
inserted
replaced
691:c93f29773f84 | 692:066e2b29b30f |
---|---|
47 __int16 *v30; // [sp+24h] [bp-8h]@2 | 47 __int16 *v30; // [sp+24h] [bp-8h]@2 |
48 signed int v31; // [sp+28h] [bp-4h]@1 | 48 signed int v31; // [sp+28h] [bp-4h]@1 |
49 signed int v32; // [sp+28h] [bp-4h]@10 | 49 signed int v32; // [sp+28h] [bp-4h]@10 |
50 | 50 |
51 v26 = this; | 51 v26 = this; |
52 v25 = viewparams->uScreenZ; | 52 v25 = viewparams->uScreen_BttmR_X; |
53 v28 = viewparams->uScreenY; | 53 v28 = viewparams->uScreen_topL_Y; |
54 v31 = 0; | 54 v31 = 0; |
55 v1 = pRenderer->pTargetSurface; | 55 v1 = pRenderer->pTargetSurface; |
56 v29 = viewparams->uScreenX; | 56 v29 = viewparams->uScreen_topL_X; |
57 v23 = viewparams->uScreenW; | 57 v23 = viewparams->uScreen_BttmR_Y; |
58 v24 = viewparams->uScreenZ - viewparams->uScreenX; | 58 v24 = viewparams->uScreen_BttmR_X - viewparams->uScreen_topL_X; |
59 do | 59 do |
60 { | 60 { |
61 v2 = &v26->field_0[2 * v31]; | 61 v2 = &v26->field_0[2 * v31]; |
62 v30 = &v26->field_0[2 * v31 + 1]; | 62 v30 = &v26->field_0[2 * v31 + 1]; |
63 *v2 += rand() % 3 + 1; | 63 *v2 += rand() % 3 + 1; |
175 signed int v3; // ebx@1 | 175 signed int v3; // ebx@1 |
176 signed int v4; // ebp@1 | 176 signed int v4; // ebp@1 |
177 | 177 |
178 v1 = this; | 178 v1 = this; |
179 v2 = 0; | 179 v2 = 0; |
180 v3 = pViewport->uScreenZ - pViewport->uScreenX - 4; | 180 v3 = pViewport->uScreen_BR_X - pViewport->uScreen_TL_X - 4; |
181 v4 = pViewport->uScreenW - pViewport->uScreenY - 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->uViewportX) + rand() % v3; |
185 *((short *)v1 + 2 * v2 - 1) = LOWORD(pViewport->uViewportY) + rand() % v4; | 185 *((short *)v1 + 2 * v2 - 1) = LOWORD(pViewport->uViewportY) + rand() % v4; |
186 } | 186 } |
209 Weather *v10; // [sp+8h] [bp-4h]@1 | 209 Weather *v10; // [sp+8h] [bp-4h]@1 |
210 | 210 |
211 v10 = this; | 211 v10 = this; |
212 if ( this->bRenderSnow != 1 ) | 212 if ( this->bRenderSnow != 1 ) |
213 return 0; | 213 return 0; |
214 HIWORD(v3) = HIWORD(viewparams->uScreenX); | 214 HIWORD(v3) = HIWORD(viewparams->uScreen_topL_X); |
215 v4 = 0; | 215 v4 = 0; |
216 screen_width = viewparams->uScreenZ - viewparams->uScreenX; | 216 screen_width = viewparams->uScreen_BttmR_X - viewparams->uScreen_topL_X; |
217 screen_x = viewparams->uScreenX; | 217 screen_x = viewparams->uScreen_topL_X; |
218 screen_z_minus_4 = viewparams->uScreenZ - 4; | 218 screen_z_minus_4 = viewparams->uScreen_BttmR_X - 4; |
219 | 219 |
220 auto _this = this->field_0; | 220 auto _this = this->field_0; |
221 while ( 1 ) | 221 while ( 1 ) |
222 { | 222 { |
223 v6 = &_this[2 * v4]; | 223 v6 = &_this[2 * v4]; |