This is probably not easy to see for a beginner but you can avoid such bugs when you never assume in a comparison that different generated floats have exactly the same value. Thats one of the first things to learn in C courses.
Just a note here.
Since the introduction of Lite-C we "veterans" of the forums got more and more this sort of feedback.
That this is "probably not easy to see for a beginner" and "That's one of the first things to learn in C courses".
May I mention that 3DGS has been always advertised that you don't need to learn any different language?
And indeed, before Lite-C there never has been any necessity to learn anything but the engine's own language.
So, many of us "veterans" learned to program while never seen another language than C-Script and later Lite-C.
Maybe, you can now understand that telling us that we are beginners,
while we already had programed several games, or at least several prototypes,
gets an offending touch.
Thank you for your understanding!
