Mercurial > mm7
diff mm7_3.cpp @ 618:5cfb5dadf330
Margareth righ-click (addded constructor to NPCProfession) and cleaned BLV debug logs
author | Nomad |
---|---|
date | Fri, 08 Mar 2013 16:06:49 +0200 |
parents | 5bf285f56fa8 |
children | 574cc56e05e9 |
line wrap: on
line diff
--- a/mm7_3.cpp Fri Mar 08 15:52:47 2013 +0200 +++ b/mm7_3.cpp Fri Mar 08 16:06:49 2013 +0200 @@ -1766,14 +1766,12 @@ switch ( pPartyActionQueue->Next() ) { case PARTY_TurnLeft: - __debugbreak(); v12 = uTurnSpeed; if ( uTurnSpeed ) goto LABEL_58; v13 = (double)v82 * fTurnSpeedMultiplier; goto LABEL_51; case PARTY_TurnRight: - __debugbreak(); LODWORD(v15) = uTurnSpeed; if ( uTurnSpeed ) goto LABEL_56; @@ -1842,12 +1840,10 @@ v26 = stru_5C6E00->Cos(angle); v27 = (double)v81; //v88 = v27; - v78 = (unsigned __int64)(v26 - * (signed __int64)(signed int)(signed __int64)(v27 * fBackwardWalkSpeedMultiplier)) >> 16; + v78 = (unsigned __int64)(v26 * (signed __int64)(signed int)(signed __int64)(v27 * fBackwardWalkSpeedMultiplier)) >> 16; v2 -= v78; v28 = stru_5C6E00->Sin(angle); - v78 = (unsigned __int64)(v28 - * (signed __int64)(signed int)(signed __int64)(v27 * fBackwardWalkSpeedMultiplier)) >> 16; + v78 = (unsigned __int64)(v28 * (signed __int64)(signed int)(signed __int64)(v27 * fBackwardWalkSpeedMultiplier)) >> 16; LABEL_68: v1 -= v78; LABEL_64: @@ -1873,7 +1869,6 @@ v72 = 1; goto LABEL_87; case PARTY_LookUp: - __debugbreak(); _view_angle += (signed __int64)(flt_6BE150_look_up_down_dangle * 25.0); if ( _view_angle > 128 ) _view_angle = 128; @@ -1884,7 +1879,6 @@ v63 = SPEECH_63; goto LABEL_76; case PARTY_LookDown: - __debugbreak(); _view_angle += (signed __int64)(flt_6BE150_look_up_down_dangle * -25.0); if ( _view_angle < -128 ) _view_angle = -128; @@ -1898,11 +1892,9 @@ } break; case PARTY_CenterView: - __debugbreak(); _view_angle = 0; break; case PARTY_Jump: - __debugbreak(); if ( (!bJumping || party_z <= v80 + 6 && v89 <= 0) && pParty->field_24 ) { bJumping = 1; @@ -11529,22 +11521,16 @@ v3 = &pIndoor->pSectors[pBspRenderer->field_FA8[a1].uSectorID]; if ( pRenderer->pRenderD3D ) { - if ( v3->uNumNonBSPFaces > 0 ) - { - do - { - Log::Warning(L"Non-BSP face: %X", v3->pFaceIDs[v2]); - pBspRenderer->PrepareFaceRenderList_d3d(v1, v3->pFaceIDs[v2++]); - } - while ( v2 < v3->uNumNonBSPFaces ); - } + for (uint i = 0; i < v3->uNumNonBSPFaces; ++i) + //Log::Warning(L"Non-BSP face: %X", v3->pFaceIDs[v2]); + pBspRenderer->AddFaceToRenderList_d3d(v1, v3->pFaceIDs[i]); } else { if ( v3->uNumNonBSPFaces > 0 ) { do - pBspRenderer->PrepareFaceRenderList_sw(v1, v3->pFaceIDs[v2++]); + pBspRenderer->AddFaceToRenderList_sw(v1, v3->pFaceIDs[v2++]); while ( v2 < v3->uNumNonBSPFaces ); } } @@ -11567,7 +11553,7 @@ bool v11; // [sp+14h] [bp-8h]@5 BspRenderer_stru0 *v12; // [sp+18h] [bp-4h]@1 - Log::Warning(L"sub_4406BC(%u, %u)", a1, uFirstNode); + //Log::Warning(L"sub_4406BC(%u, %u)", a1, uFirstNode); v10 = a1; v12 = &pBspRenderer->field_FA8[a1]; @@ -11592,17 +11578,17 @@ v7 = v3->uCoplanarOffset; v8 = v7 + v3->uCoplanarSize; - Log::Warning(L"Node %u: %X to %X (%hX)", uFirstNode, v7, v8, v2->pFaceIDs[v7]); + //Log::Warning(L"Node %u: %X to %X (%hX)", uFirstNode, v7, v8, v2->pFaceIDs[v7]); if ( pRenderer->pRenderD3D ) { while ( v7 < v8 ) - pBspRenderer->PrepareFaceRenderList_d3d(v10, v2->pFaceIDs[v7++]); + pBspRenderer->AddFaceToRenderList_d3d(v10, v2->pFaceIDs[v7++]); } else { while ( v7 < v8 ) - pBspRenderer->PrepareFaceRenderList_sw(v10, v2->pFaceIDs[v7++]); + pBspRenderer->AddFaceToRenderList_sw(v10, v2->pFaceIDs[v7++]); } v9 = v11 ? v3->uFront : v3->uBack; if ( v9 == -1 )