From 17753c56e4f4d6b3a280911ce91806e10f6aa99e Mon Sep 17 00:00:00 2001 From: jadebenn Date: Mon, 1 Jan 2024 12:21:49 -0600 Subject: [PATCH] Update PetComponent.h --- dGame/dComponents/PetComponent.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dGame/dComponents/PetComponent.h b/dGame/dComponents/PetComponent.h index 6c0b0054..f82cb132 100644 --- a/dGame/dComponents/PetComponent.h +++ b/dGame/dComponents/PetComponent.h @@ -93,35 +93,35 @@ public: * @param flag PetFlag(s) to set */ template - inline void SetFlag(varArg... flag) { m_Flags |= (static_cast(flag) | ...); }; + void SetFlag(varArg... flag) { m_Flags |= (static_cast(flag) | ...); }; /** * Sets the pet to ONLY have the specified flag(s), clearing all others * @param flag PetFlag(s) to set exclusively */ template - inline void SetOnlyFlag(varArg... flag) { m_Flags = (static_cast(flag) | ...); }; + void SetOnlyFlag(varArg... flag) { m_Flags = (static_cast(flag) | ...); }; /** * Unsets one or more pet flags * @param flag PetFlag(s) to unset */ template - inline void UnsetFlag(varArg... flag) { m_Flags &= ~(static_cast(flag) | ...); }; + void UnsetFlag(varArg... flag) { m_Flags &= ~(static_cast(flag) | ...); }; /** * Returns true if the pet has all the specified flag(s) * @param flag PetFlag(s) to check */ template - inline const bool HasFlag(varArg... flag) { return (m_Flags & (static_cast(flag) | ...)) == (static_cast(flag) | ...); }; + const bool HasFlag(varArg... flag) { return (m_Flags & (static_cast(flag) | ...)) == (static_cast(flag) | ...); }; /** * Returns true if the pet has ONLY the specified flag(s) * @param flag PetFlag(s) to check if the pet has exclusively */ template - inline const bool HasOnlyFlag(varArg... flag) { return m_Flags == (static_cast(flag) | ...); }; + const bool HasOnlyFlag(varArg... flag) { return m_Flags == (static_cast(flag) | ...); }; /** * Governs the pet update loop @@ -192,7 +192,7 @@ public: /** * Continues a step in the follow state, making sure that the entity is around its start position */ - void OnFollow(const float& deltaTime); + void OnFollow(const float deltaTime); /** * Continues a step in the interact state, handling the pet's interaction with an entity