HomeWildfire Games

Separate global heightmap manipulation functions to a library. Fixes #3764