Allow changing road vehicle driving side when all road vehicles in depots

This commit is contained in:
Jonathan G Rennison
2022-09-11 11:51:32 +01:00
parent a8d5e56696
commit 143230d8f2
2 changed files with 16 additions and 4 deletions

View File

@@ -1483,8 +1483,8 @@ static void MaxNoAIsChange(int32 new_value)
*/
static bool CheckRoadSide(int32 &new_value)
{
extern bool RoadVehiclesAreBuilt();
return (_game_mode == GM_MENU || !RoadVehiclesAreBuilt());
extern bool RoadVehiclesExistOutsideDepots();
return (_game_mode == GM_MENU || !RoadVehiclesExistOutsideDepots());
}
static void RoadSideChanged(int32 new_value)