From ff0d14b52d9e72e23f2db7d67c7f64b2ed91413d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 7 May 2020 07:33:50 -0400 Subject: [PATCH] CScriptDamageableTrigger: Mark helper functions as static where applicable Makes them internally linked. --- Runtime/World/CScriptDamageableTrigger.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Runtime/World/CScriptDamageableTrigger.cpp b/Runtime/World/CScriptDamageableTrigger.cpp index d95a5afb1..d94a4a1e4 100644 --- a/Runtime/World/CScriptDamageableTrigger.cpp +++ b/Runtime/World/CScriptDamageableTrigger.cpp @@ -8,16 +8,17 @@ #include "TCastTo.hpp" // Generated file, do not modify include path namespace urde { -CActorParameters MakeDamageableTriggerActorParms(const CActorParameters& aParams, const CVisorParameters& vParams) { +static CActorParameters MakeDamageableTriggerActorParms(const CActorParameters& aParams, const CVisorParameters& vParams) { CActorParameters ret = aParams; ret.SetVisorParameters(vParams); return ret; } -CMaterialList MakeDamageableTriggerMaterial(CScriptDamageableTrigger::ECanOrbit canOrbit) { - if (canOrbit == CScriptDamageableTrigger::ECanOrbit::Orbit) +static constexpr CMaterialList MakeDamageableTriggerMaterial(CScriptDamageableTrigger::ECanOrbit canOrbit) { + if (canOrbit == CScriptDamageableTrigger::ECanOrbit::Orbit) { return CMaterialList(EMaterialTypes::Orbit, EMaterialTypes::Trigger, EMaterialTypes::Immovable, EMaterialTypes::NonSolidDamageable, EMaterialTypes::ExcludeFromLineOfSightTest); + } return CMaterialList(EMaterialTypes::Trigger, EMaterialTypes::Immovable, EMaterialTypes::NonSolidDamageable, EMaterialTypes::ExcludeFromLineOfSightTest); }