Mercurial > mm7
comparison mm7_4.cpp @ 144:8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
author | Nomad |
---|---|
date | Tue, 12 Feb 2013 11:59:49 +0200 |
parents | cca78efb377e |
children | 796b79187c27 ee11772d0ad2 |
comparison
equal
deleted
inserted
replaced
143:b099dd069171 | 144:8ab4484c22e0 |
---|---|
14688 if ( v29 ) | 14688 if ( v29 ) |
14689 { | 14689 { |
14690 LODWORD(v20) = pBLVRenderParams->field_40 << 16; | 14690 LODWORD(v20) = pBLVRenderParams->field_40 << 16; |
14691 HIDWORD(v20) = pBLVRenderParams->field_40 >> 16; | 14691 HIDWORD(v20) = pBLVRenderParams->field_40 >> 16; |
14692 v21 = v20 / x; | 14692 v21 = v20 / x; |
14693 v0->field_0 = (unsigned __int64)(v10->scale * v20 / x) >> 16; | 14693 v0->_screenspace_x_scaler_packedfloat = (unsigned __int64)(v10->scale * v20 / x) >> 16; |
14694 a5a = (unsigned __int64)(v10->scale * (signed __int64)v21) >> 16; | 14694 a5a = (unsigned __int64)(v10->scale * (signed __int64)v21) >> 16; |
14695 } | 14695 } |
14696 else | 14696 else |
14697 { | 14697 { |
14698 //v14 = &pGame->pIndoorCameraD3D; | 14698 //v14 = &pGame->pIndoorCameraD3D; |
14702 v0->fov_y = v15; | 14702 v0->fov_y = v15; |
14703 //v17 = v16 + 6.7553994e15; | 14703 //v17 = v16 + 6.7553994e15; |
14704 LODWORD(v18) = 0; | 14704 LODWORD(v18) = 0; |
14705 HIDWORD(v18) = floorf(v16 + 0.5f); | 14705 HIDWORD(v18) = floorf(v16 + 0.5f); |
14706 v19 = v18 / x; | 14706 v19 = v18 / x; |
14707 v0->field_0 = (unsigned __int64)(v10->scale * v18 / x) >> 16; | 14707 v0->_screenspace_x_scaler_packedfloat = (unsigned __int64)(v10->scale * v18 / x) >> 16; |
14708 a5a = (unsigned __int64)(v10->scale * (signed __int64)v19) >> 16; | 14708 a5a = (unsigned __int64)(v10->scale * (signed __int64)v19) >> 16; |
14709 } | 14709 } |
14710 v0->field_4 = a5a; | 14710 v0->_screenspace_y_scaler_packedfloat = a5a; |
14711 if ( (signed __int64)p->pActorBuffs[3].uExpireTime <= 0 ) | 14711 if ( (signed __int64)p->pActorBuffs[3].uExpireTime <= 0 ) |
14712 { | 14712 { |
14713 if ( (signed __int64)p->pActorBuffs[10].uExpireTime > 0 ) | 14713 if ( (signed __int64)p->pActorBuffs[10].uExpireTime > 0 ) |
14714 { | 14714 { |
14715 a5b = (unsigned __int64)(pGame->pStru6Instance->_4A806F(p) * (signed __int64)v0->field_4) >> 16; | 14715 a5b = (unsigned __int64)(pGame->pStru6Instance->_4A806F(p) * (signed __int64)v0->_screenspace_y_scaler_packedfloat) >> 16; |
14716 goto LABEL_43; | 14716 goto LABEL_43; |
14717 } | 14717 } |
14718 } | 14718 } |
14719 else | 14719 else |
14720 { | 14720 { |
14721 v22 = p->pActorBuffs[3].uPower; | 14721 v22 = p->pActorBuffs[3].uPower; |
14722 if ( v22 ) | 14722 if ( v22 ) |
14723 { | 14723 { |
14724 v23 = (unsigned __int64)(65536 / (unsigned __int16)v22 * (signed __int64)v0->field_0) >> 16; | 14724 v23 = (unsigned __int64)(65536 / (unsigned __int16)v22 * (signed __int64)v0->_screenspace_x_scaler_packedfloat) >> 16; |
14725 v24 = p->pActorBuffs[3].uPower; | 14725 v24 = p->pActorBuffs[3].uPower; |
14726 v0->field_0 = v23; | 14726 v0->_screenspace_x_scaler_packedfloat = v23; |
14727 a5b = (unsigned __int64)(65536 / v24 * (signed __int64)v0->field_4) >> 16; | 14727 a5b = (unsigned __int64)(65536 / v24 * (signed __int64)v0->_screenspace_y_scaler_packedfloat) >> 16; |
14728 LABEL_43: | 14728 LABEL_43: |
14729 v0->field_4 = a5b; | 14729 v0->_screenspace_y_scaler_packedfloat = a5b; |
14730 goto LABEL_44; | 14730 goto LABEL_44; |
14731 } | 14731 } |
14732 } | 14732 } |
14733 LABEL_44: | 14733 LABEL_44: |
14734 HIWORD(v25) = HIWORD(x); | 14734 HIWORD(v25) = HIWORD(x); |