The change fixes two issues with the map editor's height-based grid
overlay color calculation:
- If the height exceeded the end of the color scale, the engine would
crash due to attempting an out of bounds read. Now, the calculation
caps out to using the last color in the scale.
- The calculation assumed the height step was always 512, even for
RectangularIsometric maps. Now, the (halved) TileScale of the map's
grid type is used.