For quite a while, Abiathar has had a bug that caused the default (zero) tile to be placed wherever the mouse was after the Open dialog box was finished by double-clicking on a file. (In my defense, that bug appears in every Keen level editor I've ever seen, including TOM and Mindbelt.) Today I finally fixed it.
Since the OpenFileDialog completed and closed after the second MouseDown event, an extra MouseMove event was sent to the form behind the dialog with the left mouse button held down, causing the Tile Placer to place a tile. There is now a JustOpened flag that gets set before calling OpenDeps and cleared the first time the mouse moves in the level editing pane, causing the event to be ignored.
Maybe tomorrow I'll finally figure out how to un-hardcode the tile property lists.
No comments:
Post a Comment