Bug hunting was on today's agenda, and it wasn't long before problems started to present themselves. First came a problem with the Tile Range exporting function; on closer inspection, the wrong variable was being used by the routine, which made me wonder how it ever worked in the first place (unless I made some drastic changes along the way). After changing just one character to fix the bug, I updated the Docs to make a couple of things clearer.
Next came a slight problem with the Toolbar when running the Editor under Windows XP; essentially, the wrong value seems to be detected by the Editor, even though it works fine under Windows 2000. I popped a post on the Blitz forums to see if it's possible to detect the user's O/S, as that's the easiest way to fix the bug.
Next I noticed a small problem with brushes not being clipped properly at the bottom of the map; this turned out to be a missing "=", and is probably a throwback to the tweaks I made to the Brush routines recently.
A more serious bug reared its head later in the day, with the Map Properties system failing to resize maps correctly. I've had trouble with this routine on a number of occasions, so naturally I didn't feel like delving into the code yet again (particularly as I assumed it had already been fixed). After tweaking variables, testing, tweaking, and more testing, I finally managed to iron out most of the problems; I'll probably sleep on the changes and test it thoroughly tomorrow.
Finally, a breakthrough with regard to the Toolbar problem. I'd noticed that the version compiled on the Win2k machine worked fine on the XP machine - this led me to deduce that my copy of Blitz on the XP machine wasn't updated properly (and therefore contained an old Toolbar bug). After a quick installation, the compiler was updated and the Toolbar working. Good job :)
