Skip to content

Commit

Permalink
Buildings don't have alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij committed Feb 2, 2025
1 parent cc1fcb0 commit 4916167
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Server/mods/deathmatch/logic/CBuilding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ CBuilding::CBuilding(CElement* pParent, CBuildingManager* pBuildingManager) : CE

m_pBuildingManager = pBuildingManager;
m_model = 0xFFFF;
m_alpha = 255;
m_bDoubleSided = false;
m_bCollisionsEnabled = true;
m_pLowLodBuilding = nullptr;
Expand All @@ -43,7 +42,6 @@ CBuilding::CBuilding(const CBuilding& Copy) : CElement(Copy.m_pParent), m_pLowLo

m_pBuildingManager = Copy.m_pBuildingManager;
m_model = Copy.m_model;
m_alpha = Copy.m_alpha;
m_bDoubleSided = Copy.m_bDoubleSided;
m_vecPosition = Copy.m_vecPosition;
m_vecRotation = Copy.m_vecRotation;
Expand Down
4 changes: 0 additions & 4 deletions Server/mods/deathmatch/logic/CBuilding.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ class CBuilding final : public CElement
void GetMatrix(CMatrix& matrix) override;
void SetMatrix(const CMatrix& matrix) override;

std::uint8_t GetAlpha() const noexcept { return m_alpha; }
void SetAlpha(std::uint8_t ucAlpha) noexcept { m_alpha = ucAlpha; }

std::uint16_t GetModel() const noexcept { return m_model; }
void SetModel(std::uint16_t model) noexcept { m_model = model; }

Expand All @@ -65,7 +62,6 @@ class CBuilding final : public CElement
private:
CBuildingManager* m_pBuildingManager;
CVector m_vecRotation;
std::uint8_t m_alpha;
std::uint16_t m_model;

protected:
Expand Down

0 comments on commit 4916167

Please sign in to comment.