diff --git a/Server/mods/deathmatch/logic/CHandlingManager.cpp b/Server/mods/deathmatch/logic/CHandlingManager.cpp index 7776c55af0..2ca60ee1e9 100644 --- a/Server/mods/deathmatch/logic/CHandlingManager.cpp +++ b/Server/mods/deathmatch/logic/CHandlingManager.cpp @@ -19,8 +19,8 @@ static tHandlingData m_OriginalHandlingData[HT_MAX]; static std::unique_ptr m_OriginalEntries[HT_MAX]; // Model handling data -static std::unordered_map> m_ModelEntries; -static std::unordered_map m_bModelHandlingChanged; +static std::unordered_map> m_ModelEntries; +static std::unordered_map m_ModelHandlingChanged; static std::map m_HandlingNames; @@ -142,21 +142,21 @@ bool CHandlingManager::HasModelHandlingChanged(std::uint32_t model) const noexce return false; // Return if we have changed - return m_bModelHandlingChanged[model]; + return m_ModelHandlingChanged[model]; } -void CHandlingManager::SetModelHandlingHasChanged(std::uint32_t model, bool bChanged) const noexcept +void CHandlingManager::SetModelHandlingHasChanged(std::uint32_t model, bool changed) const noexcept { // Within range? if (!CVehicleManager::IsValidModel(model)) return; // Return if we have changed. - m_bModelHandlingChanged[model] = bChanged; + m_ModelHandlingChanged[model] = changed; } // Return the handling manager id -eHandlingTypes CHandlingManager::GetHandlingID(std::uint32_t model) const noexcept +eHandlingTypes CHandlingManager::GetHandlingID(std::uint32_t model) noexcept { switch (model) { diff --git a/Server/mods/deathmatch/logic/CHandlingManager.h b/Server/mods/deathmatch/logic/CHandlingManager.h index bd0e2f0aa6..ae1df9ce96 100644 --- a/Server/mods/deathmatch/logic/CHandlingManager.h +++ b/Server/mods/deathmatch/logic/CHandlingManager.h @@ -29,12 +29,12 @@ class CHandlingManager const CHandlingEntry* GetOriginalHandlingData(std::uint32_t model) const noexcept; CHandlingEntry* GetModelHandlingData(std::uint32_t model) const noexcept; - eHandlingTypes GetHandlingID(std::uint32_t model) const noexcept; + static eHandlingTypes GetHandlingID(std::uint32_t model) noexcept; // Helper functions eHandlingProperty GetPropertyEnumFromName(const std::string& name) const noexcept; bool HasModelHandlingChanged(std::uint32_t model) const noexcept; - void SetModelHandlingHasChanged(std::uint32_t model, bool bChanged) const noexcept; + void SetModelHandlingHasChanged(std::uint32_t model, bool changed) const noexcept; private: void InitializeDefaultHandlings() noexcept;