diff options
author | Tuck Therebelos <snares@users.sourceforge.net> | 2009-12-29 09:52:05 +0300 |
---|---|---|
committer | Tuck Therebelos <snares@users.sourceforge.net> | 2009-12-29 09:52:31 +0300 |
commit | d58af53faadcafc73e88adc6163919a1296e182e (patch) | |
tree | 884d5247936691bb5ee4a170b22c5aa781d574db /plugins/tf2 | |
parent | 530bc5eb7025344097a46b41ebec02616586b207 (diff) |
Fix remaining plugin bugs; ensure console connects get handled properly; link PA in AW to bTransmitPosition; set default minimum volume of PA to 85%
Diffstat (limited to 'plugins/tf2')
-rw-r--r-- | plugins/tf2/tf2.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/tf2/tf2.cpp b/plugins/tf2/tf2.cpp index 92d1ccc06..29367d36e 100644 --- a/plugins/tf2/tf2.cpp +++ b/plugins/tf2/tf2.cpp @@ -67,7 +67,7 @@ static bool peekProc(VOID *base, VOID *dest, SIZE_T len) { } static void about(HWND h) { - ::MessageBox(h, L"Reads audio position information from Team Fortress 2 (Build 4057). IP:Port context without team discriminator.", L"Mumble TF2 Plugin", MB_OK); + ::MessageBox(h, L"Reads audio position information from Team Fortress 2 (Build 4057). IP:Port context support.", L"Mumble TF2 Plugin", MB_OK); } static bool calcout(float *pos, float *rot, float *opos, float *front, float *top) { @@ -106,6 +106,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa bool ok; char state; char chHostStr[40]; + string sHost; wostringstream new_identity; ostringstream new_context; @@ -116,7 +117,12 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa if (!ok) return false; + chHostStr[39] = 0; + + sHost.assign(chHostStr); + if (sHost.find(':')==string::npos) + sHost.append(":27015"); new_context << "<context>" << "<game>tf2</game>" |