I am having some unexpected trouble with a game I'm working on.
Basically I have a function with a parameter called flag, and judging by the flag I generate a specific menu.Whenever I run the program with a value for flag different from 0 it crashes.With flag = 0 it works perfectly.
*nevermind, they look like coordinates for placement. all the x y x1 y1 business gets muddy. You might want to rename some variables. Or maybe I should get more caffeine first