Actually fixed terrain analysis