changed: small optimization of terrain generator