D825 is the pretty big patch to commit it at once. So I moved terrain changes to the separate diff, added tests, comments and a bit refactored it.
The patch changes resize behaviour in Atlas. Now it resizes around the map center.
Original code by Clockwork-Muse.