Adjust order of station name assignments

pull/383/head
Jonathan G Rennison 2 years ago
parent a54416afbc
commit b6c967aae3

@ -313,9 +313,6 @@ static StringID GenerateStationName(Station *st, TileIndex tile, StationNaming n
if (HasBit(free_names, M(STR_SV_STNAME)) && (is_central || DistanceSquare(tile, t->xy) <= t->cache.squared_town_zone_radius[HZB_TOWN_INNER_SUBURB])) {
return STR_SV_STNAME;
}
if (is_central && HasBit(free_names, M(STR_SV_STNAME_CENTRAL))) {
return STR_SV_STNAME_CENTRAL;
}
bool use_extra_names = _extra_station_names_used > 0;
auto check_extra_names = [&]() -> bool {
@ -353,6 +350,11 @@ static StringID GenerateStationName(Station *st, TileIndex tile, StationNaming n
if (extra_name) return STR_SV_STNAME_FALLBACK;
}
/* check close enough to town to get central as name? */
if (is_central && HasBit(free_names, M(STR_SV_STNAME_CENTRAL))) {
return STR_SV_STNAME_CENTRAL;
}
/* Check lakeside */
if (HasBit(free_names, M(STR_SV_STNAME_LAKESIDE)) &&
DistanceFromEdge(tile) < 20 &&

Loading…
Cancel
Save