Better error checking for .map files, plus debugmsg if we place NULL terrian.