Add tile generation algorithm fixes

From-SVN: r258522
4 files changed