Fixes some warnings about files that don't end with newline. This was SVN commit r10991.
Fixed out of bounds memory access in Atlas due to always using global terrain in TerrainOverlay Fixed wrong player ID calculation in TerritoryOverlay This was SVN commit r10929.