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:
authorDavide Beatrici <davidebeatrici@gmail.com>2017-03-14 23:32:18 +0300
committerDavide Beatrici <davidebeatrici@gmail.com>2017-03-14 23:32:18 +0300
commit57e3d903abc7ccf4ebee8cc850978fddd18de7f9 (patch)
treed568efe78370301a35b3905917dc55b7172b482f /plugins/ql
parentdbab0f7039a8731018e0688dbdef13ce3ab7ec28 (diff)
plugins/ql: Fix spectator state offset
The previous offset was pointing at a value of "32" when in-game, which resulted in the plugin being disabled even when not spectating.
Diffstat (limited to 'plugins/ql')
-rw-r--r--plugins/ql/ql.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ql/ql.cpp b/plugins/ql/ql.cpp
index cc6a71d59..7654b6d25 100644
--- a/plugins/ql/ql.cpp
+++ b/plugins/ql/ql.cpp
@@ -22,7 +22,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
// Peekproc and assign game addresses to our containers, so we can retrieve positional data
ok = peekProc(pModule + 0x0188248, &state, 1) && // Magical state value: 1 when in-game and 0 when in main menu.
- peekProc(pModule + 0x1041C68, &spec, 1) && // Spectator state value: 1 when spectating and 0 when playing.
+ peekProc(pModule + 0x1041CAC, &spec, 1) && // Spectator state value: 1 when spectating and 0 when playing.
peekProc(pModule + 0x0EB8950, avatar_pos_corrector, 12) && // Avatar Position values (X, Z and Y, respectively).
peekProc(pModule + 0x0E6093C, camera_pos_corrector, 12) && // Camera Position values (X, Z and Y, respectively).
peekProc(pModule + 0x0EC5B50, avatar_front_corrector, 12) && // Avatar front values (X, Z and Y, respectively).