Skip to content

Commit ee4593b

Browse files
committed
Review
1 parent 942c4f9 commit ee4593b

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

Client/game_sa/C2DEffectSA.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void C2DEffectSA::SetPosition(const CVector& position)
3535
m_effectInterface->position = RwV3d{position.fX, position.fY, position.fZ};
3636
}
3737

38-
CVector& C2DEffectSA::GetPosition()
38+
CVector& C2DEffectSA::GetPosition() const
3939
{
4040
if (m_effectInterface)
4141
return CVector(m_effectInterface->position.x, m_effectInterface->position.y, m_effectInterface->position.z);

Client/game_sa/C2DEffectSA.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class C2DEffectSA : public C2DEffect
5151
void Destroy() const;
5252

5353
void SetPosition(const CVector& position) override;
54-
CVector& GetPosition() override;
54+
CVector& GetPosition() const override;
5555

5656
// Light properties
5757
// Set

Client/mods/deathmatch/logic/CClient2DFXManager.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ effectDataMap CClient2DFXManager::Get2DFXProperties(C2DEffect* effect) const
162162

163163
break;
164164
}
165-
default:
166-
break;
167165
}
168166

169167
return properties;
@@ -352,8 +350,6 @@ bool CClient2DFXManager::Set2DFXProperty(C2DEffect* effect, const e2dEffectPrope
352350

353351
break;
354352
}
355-
default:
356-
break;
357353
}
358354

359355
break;
@@ -485,8 +481,6 @@ bool CClient2DFXManager::Set2DFXProperty(C2DEffect* effect, const e2dEffectPrope
485481

486482
break;
487483
}
488-
default:
489-
break;
490484
}
491485
break;
492486
}
@@ -616,8 +610,6 @@ bool CClient2DFXManager::Set2DFXProperty(C2DEffect* effect, const e2dEffectPrope
616610

617611
break;
618612
}
619-
default:
620-
break;
621613
}
622614

623615
return false;
@@ -735,8 +727,6 @@ std::variant<float, bool, std::string> CClient2DFXManager::Get2DFXProperty(C2DEf
735727

736728
break;
737729
}
738-
default:
739-
break;
740730
}
741731

742732
return false;

Client/sdk/game/C2DEffect.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class C2DEffect
2222
{
2323
public:
2424
virtual void SetPosition(const CVector& position) = 0;
25-
virtual CVector& GetPosition() = 0;
25+
virtual CVector& GetPosition() const = 0;
2626

2727
virtual e2dEffectType GetEffectType() = 0;
2828

0 commit comments

Comments
 (0)