Skip to content

Commit

Permalink
Fix battle focus borders not working
Browse files Browse the repository at this point in the history
  • Loading branch information
kirides committed Dec 2, 2020
1 parent 18b2340 commit 8fc8765
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions D3D11Engine/D3D11GraphicsEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5099,11 +5099,8 @@ void D3D11GraphicsEngine::DrawDecalList( const std::vector<zCVob*>& decals,

XMMATRIX mat = view * world;

// E.g battle focus borders
if ( alignment == zVISUAL_CAM_ALIGN_FULL ) {
mat.r[0] = XMVectorPermute<4, 5, 5, 3>( mat.r[0], DirectX::g_XMOne );
mat.r[1] = XMVectorPermute<5, 4, 5, 3>( mat.r[1], DirectX::g_XMOne );
mat.r[2] = XMVectorPermute<5, 5, 4, 3>( mat.r[2], DirectX::g_XMOne );
/*
for (int x = 0; x < 3; x++) {
for (int y = 0; y < 3; y++) {
if (x == y)
Expand All @@ -5112,7 +5109,6 @@ void D3D11GraphicsEngine::DrawDecalList( const std::vector<zCVob*>& decals,
mat.r[x].m128_f32[y] = 0.0f;
}
}
*/
}

mat = mat * offset * scale;
Expand Down

0 comments on commit 8fc8765

Please sign in to comment.