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>2016-10-31 16:24:25 +0300
committerDavide Beatrici <davidebeatrici@gmail.com>2016-10-31 16:24:25 +0300
commit921ee19e3abd24482921d85b38c0c4b3d0cbcffe (patch)
treec26e7b7720b7c16d7b0e7bcd14394da9f898841b /plugins/ql
parentca2fd07b90746a17dba13963f7bdd54812c5d016 (diff)
plugins: use the short form of peekProc
The short form of peekProc automatically uses the correct size for the target.
Diffstat (limited to 'plugins/ql')
-rw-r--r--plugins/ql/ql.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/ql/ql.cpp b/plugins/ql/ql.cpp
index 03d5ea098..827779848 100644
--- a/plugins/ql/ql.cpp
+++ b/plugins/ql/ql.cpp
@@ -21,12 +21,12 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
BYTE team;
// 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 + 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).
- peekProc(pModule + 0x0EC5B68, avatar_top_corrector, 12) && // Avatar top values (X, Z and Y, respectively).
+ ok = peekProc(pModule + 0x0188248, state) && // Magical state value: 1 when in-game and 0 when in main menu.
+ peekProc(pModule + 0x1041C68, spec) && // Spectator state value: 1 when spectating and 0 when playing.
+ peekProc(pModule + 0x0EB8950, avatar_pos_corrector) && // Avatar Position values (X, Z and Y, respectively).
+ peekProc(pModule + 0x0E6093C, camera_pos_corrector) && // Camera Position values (X, Z and Y, respectively).
+ peekProc(pModule + 0x0EC5B50, avatar_front_corrector) && // Avatar front values (X, Z and Y, respectively).
+ peekProc(pModule + 0x0EC5B68, avatar_top_corrector) && // Avatar top values (X, Z and Y, respectively).
peekProc(pModule + 0x0E4A638, host) && // Server value: "IP:Port" when in a remote server, "loopback" when on a local server.
peekProc(pModule + 0x106E24B, servername) && // Server name.
peekProc(pModule + 0x12DE8D8, map) && // Map name.