simcodersdotcom / headshake

Source code of the HeadShake plugin for X-Plane
https://www.simcoders.com/headshake
GNU General Public License v3.0
39 stars 12 forks source link

Possible bug in gforcecameracommand.cpp #19

Closed quantumac closed 5 years ago

quantumac commented 5 years ago

Line 142 of gforcecameracommand.cpp reads "if (acc < 0.005 || acc > 0.005)". Shouldn't it be instead "if (acc < -0.005 || acc > 0.005)". In other words, this line and the following statements is trying to say "if the value is +/- close to zero, make it zero, otherwise use the value." The current code only zeros if the value is equal to precisely positive 0.005.

nico87 commented 5 years ago

That's definitely a typo! Fixed with 1e87df5a6863a3e461e25c8b30462d22a9d1af34

Thanks