Add road tile cached one way state, one way road section detection

This commit is contained in:
Jonathan G Rennison
2020-10-26 22:17:25 +00:00
parent 2fe5d4339b
commit ffe3c769a3
16 changed files with 441 additions and 104 deletions

View File

@@ -1412,7 +1412,11 @@ static bool MaxNoAIsChange(int32 i)
static bool CheckRoadSide(int p1)
{
extern bool RoadVehiclesAreBuilt();
return _game_mode == GM_MENU || !RoadVehiclesAreBuilt();
if (_game_mode != GM_MENU && RoadVehiclesAreBuilt()) return false;
extern void RecalculateRoadCachedOneWayStates();
RecalculateRoadCachedOneWayStates();
return true;
}
/**
@@ -2032,6 +2036,8 @@ void LoadFromConfig(bool minimal)
ValidateSettings();
PostZoningModeChange();
/* Display scheduled errors */
extern void ScheduleErrorMessage(ErrorList &datas);
ScheduleErrorMessage(_settings_error_list);