IDE bug?
Blitz3D Forums/Blitz3D Beginners Area/IDE bug?
| ||
I didn't want to post in the bug forums because this may not be specifically B|litz related. The issue is, as you can see by running the code (Please run in Debug Mode and wait until the STOP cmmand halts the debugging) The offending code is just under the Stop command: Stop Local Found.BioForm For Found = Each BioForm If (Not(Found\Category)) ; Found/CATEGORY IS ZERO So why is the IF skipped???????????? If (((Found\PositionX)<XMax) And ((Found\PositionX)>XMin) And ((Found\PositionY)<YMax) And ((Found\PositionX)>YMin) ) ;Double Check Range? If (Distance2D(Found\PositionX,Found\PositionY,X,Y)<Range) Exit End If End If End If Next I was wondering if this occus for opther people, and if so, does anyone have any insight as to WHY it's not working right? The complete code to run is here: PS. It's late, I'm tired, and I'm probably missing something obvious ... :S |
| ||
Doesn't skip on that line for me, but on the next one, as it should. Are you experiencing the "slipping Debug line" problem (where the highlighted line isn't the one the code's actually stopped on)? Try copying the code from the codebox back into a new file yourself, as the website will have corrected the newlines. |
| ||
Thanks, Yasha - That seemed to be what was happening. I copied and pasted directly back from here into a new file and it worked correctly! Incidentally, this also helped me spot another little issue: If (((Found\PositionX)<XMax) And ((Found\PositionX)>XMin) And ((Found\PositionY)<YMax) And ((Found\PositionX)>YMin) ) Should have used Found\PositionY at the end, not Found\PositionX ...((Found\PositionY)<YMax) And ((Found\PositionY)>YMin) ) Thanks again! |