This bug is back again, I can't assign a value to a variable in a global declaration
In the code below the two debug lines are supposed to return the same values.
// IDE Version: 5.047
GLOBAL sx,sy,width
GETSCREENSIZE sx, sy
width = 40
// This gets the wrong result
GLOBAL y1 = sx / width
DEBUG " y1=" + y1 + " sx=" + sx + " width=" + width + "\n"
// If I do the same but split the line I get the correct result
GLOBAL y2
y2 = sx / width
DEBUG " y2=" + y2 + " sx=" + sx + " width=" + width + "\n"
but I get this output:
y1=-1.#IND sx=640 width=40
y2=16 sx=640 width=40