diff options
author | Davide Beatrici <davidebeatrici@gmail.com> | 2016-10-31 16:24:25 +0300 |
---|---|---|
committer | Davide Beatrici <davidebeatrici@gmail.com> | 2016-10-31 16:24:25 +0300 |
commit | 921ee19e3abd24482921d85b38c0c4b3d0cbcffe (patch) | |
tree | c26e7b7720b7c16d7b0e7bcd14394da9f898841b /plugins/wow | |
parent | ca2fd07b90746a17dba13963f7bdd54812c5d016 (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/wow')
-rw-r--r-- | plugins/wow/wow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/wow/wow.cpp b/plugins/wow/wow.cpp index f906a82bf..44fdf4440 100644 --- a/plugins/wow/wow.cpp +++ b/plugins/wow/wow.cpp @@ -47,12 +47,12 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa char state, player[50], realm[50]; // Peekproc and assign game addresses to our containers, so we can retrieve positional data - ok = peekProc(pModule + state_address, &state, 1) && // Magical state value: 1 when in-game, 0 when not. - peekProc(avatar_offset + avatar_pos_address, avatar_pos_corrector, 12) && // Avatar Position values (Z, -X and Y). - peekProc(camera_offset + camera_pos_address, camera_pos_corrector, 12) && // Camera Position values (Z, -X and Y). + ok = peekProc(pModule + state_address, state) && // Magical state value: 1 when in-game, 0 when not. + peekProc(avatar_offset + avatar_pos_address, avatar_pos_corrector) && // Avatar Position values (Z, -X and Y). + peekProc(camera_offset + camera_pos_address, camera_pos_corrector) && // Camera Position values (Z, -X and Y). peekProc(avatar_offset + avatar_heading_address, avatar_heading) && // Avatar heading. - peekProc(camera_offset + camera_front_address, camera_front_corrector, 12) && // Camera Front Vector values (Z, -X and Y). - peekProc(camera_offset + camera_top_address, camera_top_corrector, 12) && // Camera Top Vector values (Z, -X and Y). + peekProc(camera_offset + camera_front_address, camera_front_corrector) && // Camera Front Vector values (Z, -X and Y). + peekProc(camera_offset + camera_top_address, camera_top_corrector) && // Camera Top Vector values (Z, -X and Y). peekProc(realm_offset + realm_address, realm) && // Realm name. peekProc(pModule + player_address, player); // Player nickname. |