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/etqw | |
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/etqw')
-rw-r--r-- | plugins/etqw/etqw.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/etqw/etqw.cpp b/plugins/etqw/etqw.cpp index 970a1e7ec..5fc94064f 100644 --- a/plugins/etqw/etqw.cpp +++ b/plugins/etqw/etqw.cpp @@ -31,18 +31,18 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa 0x013F9E1C float Vertical view 0x013E8D18 byte Magic value (32 ingame / 0 spectating) */ - ok = peekProc(0x00801BA4, &menustate, 1); + ok = peekProc(0x00801BA4, menustate); if (! ok) return false; if (menustate == 0) return true; - ok = peekProc(pos1ptr, avatar_pos+1, 4) && //Y - peekProc(pos2ptr, avatar_pos, 4) && //X - peekProc(pos3ptr, avatar_pos+2, 4) && //Z - peekProc(rot1ptr, &viewHor, 4) && //Hor - peekProc(rot2ptr, &viewVer, 4) && //Ver - peekProc(0x0122E0B8, ccontext, 128); + ok = peekProc(pos1ptr, avatar_pos[1]) && //Y + peekProc(pos2ptr, avatar_pos[0]) && //X + peekProc(pos3ptr, avatar_pos[2]) && //Z + peekProc(rot1ptr, viewHor) && //Hor + peekProc(rot2ptr, viewVer) && //Ver + peekProc(0x0122E0B8, ccontext); if (! ok) return false; |