Skip to content

Commit 4916167

Browse files
committed
Buildings don't have alpha
1 parent cc1fcb0 commit 4916167

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

Diff for: Server/mods/deathmatch/logic/CBuilding.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ CBuilding::CBuilding(CElement* pParent, CBuildingManager* pBuildingManager) : CE
2525

2626
m_pBuildingManager = pBuildingManager;
2727
m_model = 0xFFFF;
28-
m_alpha = 255;
2928
m_bDoubleSided = false;
3029
m_bCollisionsEnabled = true;
3130
m_pLowLodBuilding = nullptr;
@@ -43,7 +42,6 @@ CBuilding::CBuilding(const CBuilding& Copy) : CElement(Copy.m_pParent), m_pLowLo
4342

4443
m_pBuildingManager = Copy.m_pBuildingManager;
4544
m_model = Copy.m_model;
46-
m_alpha = Copy.m_alpha;
4745
m_bDoubleSided = Copy.m_bDoubleSided;
4846
m_vecPosition = Copy.m_vecPosition;
4947
m_vecRotation = Copy.m_vecRotation;

Diff for: Server/mods/deathmatch/logic/CBuilding.h

-4
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ class CBuilding final : public CElement
4444
void GetMatrix(CMatrix& matrix) override;
4545
void SetMatrix(const CMatrix& matrix) override;
4646

47-
std::uint8_t GetAlpha() const noexcept { return m_alpha; }
48-
void SetAlpha(std::uint8_t ucAlpha) noexcept { m_alpha = ucAlpha; }
49-
5047
std::uint16_t GetModel() const noexcept { return m_model; }
5148
void SetModel(std::uint16_t model) noexcept { m_model = model; }
5249

@@ -65,7 +62,6 @@ class CBuilding final : public CElement
6562
private:
6663
CBuildingManager* m_pBuildingManager;
6764
CVector m_vecRotation;
68-
std::uint8_t m_alpha;
6965
std::uint16_t m_model;
7066

7167
protected:

0 commit comments

Comments
 (0)