diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-01-02 01:56:30 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-01-02 01:56:30 +0300 |
commit | bb5b2142035c99da4c1703866385917f7e06931a (patch) | |
tree | 248deb74154c0daa34d46a075e09a6aa1963abfd /plugins/etqw | |
parent | 064969a4f4477fcf208d4147d47732de392e19a7 (diff) |
Indent, changelog, submodule and language update
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 9909e47db..2edfe5b87 100644 --- a/plugins/etqw/etqw.cpp +++ b/plugins/etqw/etqw.cpp @@ -86,7 +86,7 @@ static void about(HWND h) { static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, float *camera_pos, float *camera_front, float *camera_top, std::string &context, std::wstring &identity) { char menustate; char ccontext[128]; - + float viewHor, viewVer; for (int i=0;i<3;i++) avatar_pos[i]=avatar_front[i]=avatar_top[i]=0.0f; @@ -116,17 +116,17 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa peekProc(pos3ptr, avatar_pos+2, 4) && //Z peekProc(rot1ptr, &viewHor, 4) && //Hor peekProc(rot2ptr, &viewVer, 4) && //Ver - peekProc((BYTE *) 0x0122E0B8, ccontext, 128); + peekProc((BYTE *) 0x0122E0B8, ccontext, 128); if (! ok) return false; avatar_top[2] = -1; // Head movement is in front vector - + ccontext[127] = 0; context = std::string(ccontext); - - if (context.find(':')==string::npos) + + if (context.find(':')==string::npos) context.append(":27733"); /* @@ -171,14 +171,14 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa static int trylock() { h = NULL; pos1ptr = pos2ptr = pos3ptr = rot1ptr = rot2ptr = NULL; - + DWORD pid=getProcess(L"etqw.exe"); if (!pid) return false; BYTE *mod=getModuleAddr(pid, L"gamex86.dll"); if (!mod) return false; - + pos1ptr = mod + 0x74EABC; pos2ptr = mod + 0x74EAB4; pos3ptr = mod + 0x74EAB8; |