Kicked off the session by tackling the Flood Fill routine; I'd started converting this routine on Friday (to work with the Data Bank instead of the old array), but a few ugly bugs reared their heads. After stepping through everything methodically, it all boiled down to just a couple of mis-typed characters. Grrr!
After this came the less than enviable task of applying similar changes to the rest of the drawing routines (exchange tiles, grab Brush, plot Brush, and insert/delete Column/Row). The Brush routines in particular were a nightmare to write, let alone change and debug, so there was plenty of head-scratching and more than a little cursing before everything was working properly.
In addition, there were a number of behind-the-scenes routines (such as the tile occurrence counter, saving routines, and map initialisation) that also needed to be tweaked. So after several hours work, everything looks exactly the same as it did before! Ho-hum.
Once that arduous task was out of the way, I decided to test my luck, dive in, and implement multiple maps. Thankfully, all of the hard work and preparation had paid off, and after adding a couple of lines of code and doing a quick search & replace, the Editor can now handle multiple maps. Happy Bunny mode engaged. :)
