fixed a bug where the waypoint window broke with the first use of "To Target", added prevention of some NREs that happened in the editor but seemed otherwise harmless
slight ui changes and trying to get longrange terrain clicking working without success so far