Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Nov 18, 2024
1 parent 9c117fd commit 1f3ddc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Shared/mods/deathmatch/logic/CLodModels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4335,7 +4335,7 @@ std::uint32_t CLodModels::GetObjectLowLODModel(std::uint32_t hLODModel) noexcept
if (auto it = m_customLODModels.find(hLODModel); it != m_customLODModels.end())
return it->second;

// Fallback to predefined LOD models
// Check predefined LOD models
if (auto it2 = m_predefinedLODModels.find(hLODModel); it2 != m_predefinedLODModels.end())
return it2->second;

Expand All @@ -4345,11 +4345,11 @@ std::uint32_t CLodModels::GetObjectLowLODModel(std::uint32_t hLODModel) noexcept

std::uint32_t CLodModels::GetObjectHighLODModel(std::uint32_t lLODModel) noexcept
{
// Check custom reverse lookup map
// Check custom LOD models reverse lookup map
if (auto it = m_reverseCustomLODModels.find(lLODModel); it != m_reverseCustomLODModels.end())
return it->second;

// Check predefined reverse lookup map
// Check predefined LOD models reverse lookup map
if (auto it2 = m_reversePredefinedLODModels.find(lLODModel); it2 != m_reversePredefinedLODModels.end())
return it2->second;

Expand Down

0 comments on commit 1f3ddc6

Please sign in to comment.