Add a helper function to get the ground for a rail tile
commitb4a7ff39ac6ac70939b8b30ca8e441bf579b6487
authorcirdan <cirdansw@gmail.com>
Mon, 15 Jan 2018 20:12:40 +0000 (15 21:12 +0100)
committercirdan <cirdansw@gmail.com>
Mon, 15 Jan 2018 20:12:40 +0000 (15 21:12 +0100)
treeb9f1fd9b8d73f71176fd65fb9938a699d21d6643
parent17dd09492acb2840ba4e99d8e9f558961a401304
Add a helper function to get the ground for a rail tile

Add a function GetNewRailGroundType to get the new ground type
to use for a railway tile in the tile loop, which helps remove
a goto in TileLoop_Track.
src/rail_cmd.cpp