浏览代码

Linux Build Fixes (#452)

Signed-off-by: Steve Pham <[email protected]>
Steve Pham 2 年之前
父节点
当前提交
4f8f5fb34d

+ 0 - 1
Gem/Code/Source/Components/Multiplayer/EnergyBallComponent.cpp

@@ -198,7 +198,6 @@ namespace MultiplayerSample
                     // Look for physics rigid body component and make impact updates
                     if (Multiplayer::NetworkRigidBodyComponent* rigidBodyComponent = handle.GetEntity()->FindComponent<Multiplayer::NetworkRigidBodyComponent>())
                     {
-                        const AZ::Vector3 explosionCentre = position;
                         const AZ::Vector3 hitObject = handle.GetEntity()->GetTransform()->GetWorldTM().GetTranslation();
                         const AZ::Vector3 impulse = (hitObject - position).GetNormalized() * damage * sv_EnergyBallImpulseScalar;
                         rigidBodyComponent->SendApplyImpulse(impulse, position);

+ 2 - 1
Gem/Code/Source/Components/NetworkAiComponent.cpp

@@ -17,7 +17,6 @@
 
 namespace MultiplayerSample
 {
-    constexpr static float SecondsToMs = 1000.f;
 
     NetworkAiComponentController::NetworkAiComponentController(NetworkAiComponent& parent)
         : NetworkAiComponentControllerBase(parent)
@@ -25,6 +24,8 @@ namespace MultiplayerSample
 	}
 
 #if AZ_TRAIT_SERVER
+    constexpr static float SecondsToMs = 1000.f;
+
     void NetworkAiComponentController::TickMovement(NetworkPlayerMovementComponentController& movementController, float deltaTime)
     {
         // TODO: Execute this tick only if this component is owned by this endpoint (currently ticks on server only)

+ 2 - 1
MPSGameLift/Code/Include/MPSGameLift/IRegionalLatencyFinder.h

@@ -8,11 +8,12 @@
 
 #pragma once
 
+#include <AzCore/EBus/Event.h>
 #include <AzCore/RTTI/RTTIMacros.h>
 #include <AzCore/std/chrono/chrono.h>
+#include <AzCore/std/containers/unordered_map.h>
 #include <AzCore/std/string/string.h>
 
-
 namespace MPSGameLift
 {
     typedef AZStd::unordered_map<AZStd::string, AZStd::chrono::milliseconds> RegionalLatencies;

+ 1 - 0
MPSGameLift/Code/Source/Components/UI/UiGameLiftConnectWithPlayerSessionData.cpp

@@ -25,6 +25,7 @@
 #include <AzCore/Jobs/JobFunction.h>
 #include <Multiplayer/Session/ISessionHandlingRequests.h>
 
+#include <Framework/Util.h>
 
 namespace MPSGameLift
 {