Skip to content

Commit 7febd31

Browse files
committed
Fix debug chat movement when changing audio volume
1 parent 7401422 commit 7febd31

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Client/core/CChat.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class CChat
155155
public:
156156
CChat(void){};
157157
CChat(CGUI* pManager, const CVector2D& vecPosition);
158-
~CChat(void);
158+
virtual ~CChat();
159159

160160
virtual void Draw(bool bUseCacheTexture, bool bAllowOutline);
161161
virtual void Output(const char* szText, bool bColorCoded = true);
@@ -198,8 +198,9 @@ class CChat
198198
void LoadCVars(void);
199199

200200
protected:
201+
virtual void UpdatePosition(void);
202+
201203
void UpdateGUI(void);
202-
void UpdatePosition(void);
203204
void UpdateSmoothScroll(float* pfPixelScroll, int* piLineScroll);
204205
void DrawDrawList(const SDrawList& drawList, const CVector2D& topLeftOffset = CVector2D(0, 0));
205206
void GetDrawList(SDrawList& outDrawList, bool bUsingOutline);

Client/core/CDebugView.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ class CDebugView : public CChat
2828

2929
protected:
3030
// Debug view doesn't support position changes unlike chat box
31-
void UpdatePosition(void){};
31+
void UpdatePosition() override {};
3232
};

0 commit comments

Comments
 (0)