diff --git a/D3D11Engine/GothicAPI.cpp b/D3D11Engine/GothicAPI.cpp index 33bcfab1..5c734280 100644 --- a/D3D11Engine/GothicAPI.cpp +++ b/D3D11Engine/GothicAPI.cpp @@ -634,7 +634,7 @@ void GothicAPI::DrawWorldMeshNaive() { static float setfovH = RendererState.RendererSettings.FOVHoriz; static float setfovV = RendererState.RendererSettings.FOVVert; - float fovH, fovV; + float fovH = 90.0f, fovV = 90.0f; if (zCCamera::GetCamera()) zCCamera::GetCamera()->GetFOV(fovH, fovV); diff --git a/D3D11Engine/zCParticleFX.h b/D3D11Engine/zCParticleFX.h index 2f28988a..c65c6b8e 100644 --- a/D3D11Engine/zCParticleFX.h +++ b/D3D11Engine/zCParticleFX.h @@ -7,9 +7,6 @@ #include "zCTimer.h" #include "zCPolyStrip.h" -using namespace DirectX; -using namespace DirectX::SimpleMath; - enum EZParticleAlignment { zPARTICLE_ALIGNMENT_VELOCITY = 1, @@ -146,7 +143,7 @@ class zCParticleFX static float SinEase(float value) { - return (float)((sin(value * XM_PI - XM_PI / 2.0) + 1.0) / 2.0); + return (float)((sin(value * DirectX::XM_PI - DirectX::XM_PI / 2.0) + 1.0) / 2.0); } static float SinSmooth(float value) diff --git a/D3D11Engine/zCSkyController_Outdoor.h b/D3D11Engine/zCSkyController_Outdoor.h index e72e981c..4863167a 100644 --- a/D3D11Engine/zCSkyController_Outdoor.h +++ b/D3D11Engine/zCSkyController_Outdoor.h @@ -153,7 +153,7 @@ class zCSkyController_Outdoor : public zCSkyController #ifndef BUILD_GOTHIC_1_08k return *(DirectX::SimpleMath::Vector3 *)THISPTR_OFFSET(GothicMemoryLocations::zCSkyController_Outdoor::Offset_OverrideColor); #else - return D3DXVECTOR3(0, 0, 0); + return DirectX::SimpleMath::Vector3(0, 0, 0); #endif }