acuion
acuion copied to clipboard
Crashing with hit-chance
I've been testing around with hit-chance and every time it's being called it crashes. What I tried:
Hit-chance + no-shoot [Crash] Hit-chance + auto-wall [Crash] Hit-chance + without auto-wall [Crash] Hit-chance + spread-limit [Crash] Hit-chance + without spread-limit [Crash]
It is clear that the problem is hit-chance, the strange thing about this is that @acuifex didn't experience these crashes and when he sent me his .so
file, it didn't crash for me.
After intense debuging we think that problem is on line 170: Math::VectorAngles(direction, up, viewAnglesSpread); probably compiler optimise this bit of code for some reason.
just for fyi crash occurs when hitting somevector.NormalizeInPlace();
UPDATE! Now it's 2020, and the problem is still... There...
Please check 81c06cc6768fdb1441b049c7abdccf89bedb694f. i think this stuff fixes this.
interesting thing is that i never had this crash until today.