Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuck Therebelos <snares@users.sourceforge.net>2009-12-29 09:52:05 +0300
committerTuck Therebelos <snares@users.sourceforge.net>2009-12-29 09:52:31 +0300
commitd58af53faadcafc73e88adc6163919a1296e182e (patch)
tree884d5247936691bb5ee4a170b22c5aa781d574db /plugins/insurgency
parent530bc5eb7025344097a46b41ebec02616586b207 (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/insurgency')
-rw-r--r--plugins/insurgency/insurgency.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/plugins/insurgency/insurgency.cpp b/plugins/insurgency/insurgency.cpp
index c298eff89..27ab6bb0e 100644
--- a/plugins/insurgency/insurgency.cpp
+++ b/plugins/insurgency/insurgency.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 Insurgency: Modern Infantry Combat (Build 3945). IP:Port context without team discriminator.", L"Mumble Insurgency Plugin", MB_OK);
+ ::MessageBox(h, L"Reads audio position information from Insurgency: Modern Infantry Combat (Build 3945). IP:Port context support.", L"Mumble Insurgency 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;
@@ -115,11 +116,16 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
peekProc(hostptr, chHostStr, 40);
if (!ok)
return false;
+
chHostStr[39] = 0;
+
+ sHost.assign(chHostStr);
+ if (sHost.find(':')==string::npos)
+ sHost.append(":27015");
new_context << "<context>"
<< "<game>insurgency</game>"
- << "<hostport>" << chHostStr << "</hostport>"
+ << "<hostport>" << sHost << "</hostport>"
<< "</context>";
context = new_context.str();
@@ -159,7 +165,7 @@ static int trylock() {
BYTE *mod=getModuleAddr(pid, L"client.dll");
if (!mod)
return false;
- BYTE *mod_engine = getModuleAddr(pid, L"engine.dll");
+ BYTE *mod_engine=getModuleAddr(pid, L"engine.dll");
if (!mod_engine)
return false;