Add road tile cached one way state, one way road section detection
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user