diff options
author | Jan Klass <kissaki@posteo.de> | 2016-11-17 14:59:45 +0300 |
---|---|---|
committer | Jan Klass <kissaki@posteo.de> | 2016-11-17 14:59:45 +0300 |
commit | e2ad9c05f0cff73defe5083e6728ab9b1af63ab9 (patch) | |
tree | e3882263e01ace81722863d84e86337e82b06114 /plugins/cod5 | |
parent | 486381c95a5d83f61c47b8e43538c03f341cc8a5 (diff) |
Fix 2643: Revert "Merge PR #2611: plugins: use the short form of peekProc"
This reverts commit e9c558ffdbc1501d63f3fd6d73578f6fd6611aa1, reversing
changes made to ca2fd07b90746a17dba13963f7bdd54812c5d016.
This is a quick-fix for crashing PA plugins. The intended change is
still useful and planned to land later.
Diffstat (limited to 'plugins/cod5')
-rw-r--r-- | plugins/cod5/cod5.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/cod5/cod5.cpp b/plugins/cod5/cod5.cpp index ebea88fcf..699cd220a 100644 --- a/plugins/cod5/cod5.cpp +++ b/plugins/cod5/cod5.cpp @@ -27,7 +27,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa 0x0098FD2C byte Magical state value */ - ok = peekProc(0x0098FD2C, state); // Magical state value + ok = peekProc(0x0098FD2C, &state, 1); // Magical state value if (! ok) return false; /* @@ -42,11 +42,11 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa if (state != 4) return true; // This results in all vectors beeing zero which tells mumble to ignore them. - ok = peekProc(0x008DE23C, avatar_pos[2]) && //Z - peekProc(0x008DE234, avatar_pos[0]) && //X - peekProc(0x008DE238, avatar_pos[1]) && //Y - peekProc(0x008DE244, viewHor) && //Hor - peekProc(0x008DE240, viewVer); //Ver + ok = peekProc(0x008DE23C, avatar_pos+2, 4) && //Z + peekProc(0x008DE234, avatar_pos, 4) && //X + peekProc(0x008DE238, avatar_pos+1, 4) && //Y + peekProc(0x008DE244, &viewHor, 4) && //Hor + peekProc(0x008DE240, &viewVer, 4); //Ver if (! ok) return false; |