Flood fill for Tilemaps.
I'm still having this problem, how do you fix it?
Try the links in the comments.