Compiler Bugs Plaguing Your Project?
Well, I was just playing my game before going to bed again, and I found a strange bug. The problem is it works fine when running from the source. It’s only in the compiled version. Must be an optimization happening or something, but Python uses byte-code so it should be the same. I’m very confused about it at the moment. It’s not a major bug, it just plays the losing sound and flashes the lose graphic for a second before flashing win and doesn’t do the nice animation.
I’m going to try and fix it now, and repost the exe after flipping around my logical conditions a bit.
Update: Of course, as always, as soon as you make a post, you find the bug. And it just kicks you in the face. It’s a really obscure bug, which if I had a legion of testers could have been found. I apparently, would always end the game selecting two frames of the same size, and the bug occurs when it’s frames of different sizes. What a pain. Hope people won’t mind if I upload the fixed version to the small problem… Just one small additional to a conditional…