We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c64fddb + c54bf4c commit 70db873Copy full SHA for 70db873
1 file changed
src/game/client/components/tclient/mumble.cpp
@@ -9,6 +9,8 @@
9
10
#include <game/client/gameclient.h>
11
12
+#define MUMBLE_2D_SCALE 128.0f
13
+
14
void CMumble::MakeContext()
15
{
16
mumble_destroy_context(&m_pContext);
@@ -71,12 +73,12 @@ void CMumble::OnRender()
71
73
72
74
char aIdentity[16];
75
str_format(aIdentity, sizeof(aIdentity), "%d", ClientId);
- if(!mumble_set_context(m_pContext, aIdentity))
76
+ if(!mumble_set_identity(m_pContext, aIdentity))
77
log_error("mumble", "Failed to set identity");
78
m_LastClientId = ClientId;
79
}
80
const auto &Pos = GameClient()->m_aClients[ClientId].m_RenderPos;
- mumble_2d_update(m_pContext, Pos.x, Pos.y);
81
+ mumble_2d_update(m_pContext, Pos.x / MUMBLE_2D_SCALE, Pos.y / MUMBLE_2D_SCALE);
82
83
84
void CMumble::OnConsoleInit()
0 commit comments