Mercurial > mm7
comparison mm7_4.cpp @ 1281:21a46b38ca24
m
author | Ritor1 |
---|---|
date | Sat, 15 Jun 2013 09:55:07 +0600 |
parents | 8ee5f1554b64 |
children | 8a196c858180 |
comparison
equal
deleted
inserted
replaced
1240:353cb3ad9725 | 1281:21a46b38ca24 |
---|---|
4514 { | 4514 { |
4515 v12 = 2 * stru_F8A590._viewport_space_y; | 4515 v12 = 2 * stru_F8A590._viewport_space_y; |
4516 v101 = 2 * stru_F8A590._viewport_space_y; | 4516 v101 = 2 * stru_F8A590._viewport_space_y; |
4517 while ( 1 ) | 4517 while ( 1 ) |
4518 { | 4518 { |
4519 a1 = *(__int16 *)((char *)stru_F8A590.array_18 + v12); | 4519 a1 = *(__int16 *)((char *)stru_F8A590.viewport_left_side + v12); |
4520 sub_4AE313(a1, result, &stru_F81018.field_0); | 4520 sub_4AE313(a1, result, &stru_F81018.field_0); |
4521 if ( LOBYTE(viewparams->field_20) ) | 4521 if ( LOBYTE(viewparams->field_20) ) |
4522 { | 4522 { |
4523 v15 = v95 * (v12 - pBLVRenderParams->uViewportY); | 4523 v15 = v95 * (v12 - pBLVRenderParams->uViewportY); |
4524 v119 = &pBLVRenderParams->pTargetZBuffer[2 | 4524 v119 = &pBLVRenderParams->pTargetZBuffer[2 |
4525 * (*(__int16 *)((char *)stru_F8A590.array_18 + v12) | 4525 * (*(__int16 *)((char *)stru_F8A590.viewport_left_side + v12) |
4526 + 320 * (v12 - pBLVRenderParams->uViewportY)) | 4526 + 320 * (v12 - pBLVRenderParams->uViewportY)) |
4527 - pBLVRenderParams->uViewportX]; | 4527 - pBLVRenderParams->uViewportX]; |
4528 v16 = &pBLVRenderParams->pRenderTarget[v15 | 4528 v16 = &pBLVRenderParams->pRenderTarget[v15 |
4529 + 2 * *(__int16 *)((char *)stru_F8A590.array_18 + v12) | 4529 + 2 * *(__int16 *)((char *)stru_F8A590.viewport_left_side + v12) |
4530 - pBLVRenderParams->uViewportX]; | 4530 - pBLVRenderParams->uViewportX]; |
4531 v14 = &pBLVRenderParams->pRenderTarget[v15 | 4531 v14 = &pBLVRenderParams->pRenderTarget[v15 |
4532 + 2 * *(__int16 *)((char *)stru_F8A590.array_3D8 + v12) | 4532 + 2 * *(__int16 *)((char *)stru_F8A590.viewport_right_side + v12) |
4533 - pBLVRenderParams->uViewportX]; | 4533 - pBLVRenderParams->uViewportX]; |
4534 v123 = (unsigned int)v16; | 4534 v123 = (unsigned int)v16; |
4535 } | 4535 } |
4536 else | 4536 else |
4537 { | 4537 { |
4538 v13 = *(__int16 *)((char *)stru_F8A590.array_18 + v12); | 4538 v13 = *(__int16 *)((char *)stru_F8A590.viewport_left_side + v12); |
4539 v119 = &pBLVRenderParams->pTargetZBuffer[v13 + v99]; | 4539 v119 = &pBLVRenderParams->pTargetZBuffer[v13 + v99]; |
4540 v123 = (unsigned int)&pBLVRenderParams->pRenderTarget[v13 + v11]; | 4540 v123 = (unsigned int)&pBLVRenderParams->pRenderTarget[v13 + v11]; |
4541 v14 = &pBLVRenderParams->pRenderTarget[v11 + *(__int16 *)((char *)stru_F8A590.array_3D8 + v12)]; | 4541 v14 = &pBLVRenderParams->pRenderTarget[v11 + *(__int16 *)((char *)stru_F8A590.viewport_right_side + v12)]; |
4542 } | 4542 } |
4543 v117 = (unsigned int)v14; | 4543 v117 = (unsigned int)v14; |
4544 HIWORD(v17) = HIWORD(stru_F81018.field_0.field_0); | 4544 HIWORD(v17) = HIWORD(stru_F81018.field_0.field_0); |
4545 v18 = stru_F81018.field_0.field_10; | 4545 v18 = stru_F81018.field_0.field_10; |
4546 LOWORD(v17) = 0; | 4546 LOWORD(v17) = 0; |
5002 v14 = &stru_F83B80[stru_F8A590._viewport_space_y]; | 5002 v14 = &stru_F83B80[stru_F8A590._viewport_space_y]; |
5003 v55 = 2 * stru_F8A590._viewport_space_y; | 5003 v55 = 2 * stru_F8A590._viewport_space_y; |
5004 v56 = 640 * stru_F8A590._viewport_space_y; | 5004 v56 = 640 * stru_F8A590._viewport_space_y; |
5005 for ( i = &stru_F83B80[stru_F8A590._viewport_space_y]; ; v14 = i ) | 5005 for ( i = &stru_F83B80[stru_F8A590._viewport_space_y]; ; v14 = i ) |
5006 { | 5006 { |
5007 sub_4AE1E7(v12, *(__int16 *)((char *)stru_F8A590.array_18 + v13), v12); | 5007 sub_4AE1E7(v12, *(__int16 *)((char *)stru_F8A590.viewport_left_side + v13), v12); |
5008 v14->field_0 += (GetTickCount() << 11) - (pBLVRenderParams->vPartyPos.x << 16); | 5008 v14->field_0 += (GetTickCount() << 11) - (pBLVRenderParams->vPartyPos.x << 16); |
5009 v15 = GetTickCount(); | 5009 v15 = GetTickCount(); |
5010 v16 = v14->field_0; | 5010 v16 = v14->field_0; |
5011 v14->field_4 += (32 * pBLVRenderParams->vPartyPos.y + v15) << 11; | 5011 v14->field_4 += (32 * pBLVRenderParams->vPartyPos.y + v15) << 11; |
5012 v45 = v14->field_4 >> 3; | 5012 v45 = v14->field_4 >> 3; |
5013 v44 = v16 >> 3; | 5013 v44 = v16 >> 3; |
5014 v17 = (signed int)((unsigned __int64)(SLODWORD(pBLVRenderParams->field_44) * (signed __int64)v14->field_28) >> 16) >> 3; | 5014 v17 = (signed int)((unsigned __int64)(SLODWORD(pBLVRenderParams->field_44) * (signed __int64)v14->field_28) >> 16) >> 3; |
5015 v52 = (unsigned __int64)(v17 * (signed __int64)-pBLVRenderParams->sSineY) >> 16; | 5015 v52 = (unsigned __int64)(v17 * (signed __int64)-pBLVRenderParams->sSineY) >> 16; |
5016 v53 = (unsigned __int64)(v17 * (signed __int64)pBLVRenderParams->sCosineY) >> 16; | 5016 v53 = (unsigned __int64)(v17 * (signed __int64)pBLVRenderParams->sCosineY) >> 16; |
5017 v18 = v14->field_28; | 5017 v18 = v14->field_28; |
5018 v19 = *(__int16 *)((char *)stru_F8A590.array_18 + v13); | 5018 v19 = *(__int16 *)((char *)stru_F8A590.viewport_left_side + v13); |
5019 LOWORD(v18) = 0; | 5019 LOWORD(v18) = 0; |
5020 v46 = stru_F8AD28.field_0 | v18; | 5020 v46 = stru_F8AD28.field_0 | v18; |
5021 v61 = *(__int16 *)((char *)stru_F8A590.array_3D8 + v13) - v19; | 5021 v61 = *(__int16 *)((char *)stru_F8A590.viewport_right_side + v13) - v19; |
5022 if ( LOBYTE(viewparams->field_20) ) | 5022 if ( LOBYTE(viewparams->field_20) ) |
5023 { | 5023 { |
5024 v63 = &pBLVRenderParams->pTargetZBuffer[2 * (v19 + 320 * (v13 - pBLVRenderParams->uViewportY)) | 5024 v63 = &pBLVRenderParams->pTargetZBuffer[2 * (v19 + 320 * (v13 - pBLVRenderParams->uViewportY)) |
5025 - pBLVRenderParams->uViewportX]; | 5025 - pBLVRenderParams->uViewportX]; |
5026 v31 = v44; | 5026 v31 = v44; |