First flaw, and probably the one being hinted at: The math is going to explode for modSpeed or setSpeed if the current speed (“old_speed”) is zero.
Bigger critical flaw: The modSpeed method calculates “add_speed” but then tries to actually change the bullet speed to “new_speed” which is undefined/uninitialized.
First flaw, and probably the one being hinted at: The math is going to explode for modSpeed or setSpeed if the current speed (“old_speed”) is zero.
Bigger critical flaw: The modSpeed method calculates “add_speed” but then tries to actually change the bullet speed to “new_speed” which is undefined/uninitialized.
Comment by Ichneumon — January 30, 2021 @ 1:24 am