From 78fbe3c7feb249b1793bb311fa20e6d32f72ed82 Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Thu, 17 Feb 2022 03:17:41 -0800 Subject: [PATCH] Added support for Windows Native --- dGame/dComponents/InventoryComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dGame/dComponents/InventoryComponent.cpp b/dGame/dComponents/InventoryComponent.cpp index a026fb09..f1bd8db7 100644 --- a/dGame/dComponents/InventoryComponent.cpp +++ b/dGame/dComponents/InventoryComponent.cpp @@ -916,7 +916,7 @@ void InventoryComponent::EquipItem(Item* item, const bool skipChecks) auto startRotation = NiQuaternion::LookAt(startPosition, startPosition + NiPoint3::UNIT_X); auto angles = startRotation.GetEulerAngles(); - angles.y -= M_PI; + angles.y -= PI; startRotation = NiQuaternion::FromEulerAngles(angles); GameMessages::SendTeleport(m_Parent->GetObjectID(), startPosition, startRotation, m_Parent->GetSystemAddress(), true, true);