Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij committed Apr 21, 2024
1 parent ebf3e18 commit 3907106
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions Client/mods/deathmatch/logic/CClientBuilding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,22 +137,17 @@ bool CClientBuilding::SetLowLodBuilding(CClientBuilding* pLod)
// Add new LOD
m_pLowBuilding = pLod;
m_pBuilding->SetLod(dynamic_cast<CBuilding*>(pLod->GetGameEntity()));
pLod->SetHighLodBuinding(this);
pLod->SetHighLodBuilding(this);
}
else
{
// Remove LOD
if (m_pLowBuilding)
{
m_pLowBuilding->SetHighLodBuinding();
m_pLowBuilding->SetHighLodBuilding();
}
m_pBuilding->SetLod(nullptr);
m_pLowBuilding = nullptr;
}
return true;
}

void CClientBuilding::SetHighLodBuinding(CClientBuilding* pHighBuilding)
{
m_pHighBuilding = pHighBuilding;
}
2 changes: 1 addition & 1 deletion Client/mods/deathmatch/logic/CClientBuilding.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class CClientBuilding : public CClientEntity
bool SetLowLodBuilding(CClientBuilding* pLod = nullptr);
bool IsLod() { return m_pHighBuilding != nullptr; };

void SetHighLodBuinding(CClientBuilding* pHighBuilding = nullptr);
void SetHighLodBuilding(CClientBuilding* pHighBuilding = nullptr) { m_pHighBuilding = pHighBuilding; };

private:

Expand Down

0 comments on commit 3907106

Please sign in to comment.