Skip to content
Snippets Groups Projects
Commit ad579f7d authored by Erik Nygren's avatar Erik Nygren :bullettrain_front:
Browse files

updated inner city connection behavior

parent afb0555b
No related branches found
No related tags found
No related merge requests found
...@@ -801,7 +801,7 @@ def sparse_rail_generator(num_cities=5, grid_mode=False, max_inter_city_rails=4, ...@@ -801,7 +801,7 @@ def sparse_rail_generator(num_cities=5, grid_mode=False, max_inter_city_rails=4,
if track_id % 2 == 0: if track_id % 2 == 0:
source = inner_connection_points[current_city][boarder][track_id] source = inner_connection_points[current_city][boarder][track_id]
target = inner_connection_points[current_city][opposite_boarder][track_id] target = inner_connection_points[current_city][opposite_boarder][track_id]
current_track = connect_straigt_line(rail_trans, grid_map, source, target) current_track = connect_straigt_line(rail_trans, grid_map, source, target, False)
if target in all_outer_connection_points and source in \ if target in all_outer_connection_points and source in \
all_outer_connection_points and len(through_path_cells[current_city]) < 1: all_outer_connection_points and len(through_path_cells[current_city]) < 1:
through_path_cells[current_city].extend(current_track) through_path_cells[current_city].extend(current_track)
...@@ -809,7 +809,7 @@ def sparse_rail_generator(num_cities=5, grid_mode=False, max_inter_city_rails=4, ...@@ -809,7 +809,7 @@ def sparse_rail_generator(num_cities=5, grid_mode=False, max_inter_city_rails=4,
source = inner_connection_points[current_city][opposite_boarder][track_id] source = inner_connection_points[current_city][opposite_boarder][track_id]
target = inner_connection_points[current_city][boarder][track_id] target = inner_connection_points[current_city][boarder][track_id]
current_track = connect_straigt_line(rail_trans, grid_map, source, target) current_track = connect_straigt_line(rail_trans, grid_map, source, target, False)
if target in all_outer_connection_points and source in \ if target in all_outer_connection_points and source in \
all_outer_connection_points and len(through_path_cells[current_city]) < 1: all_outer_connection_points and len(through_path_cells[current_city]) < 1:
through_path_cells[current_city].extend(current_track) through_path_cells[current_city].extend(current_track)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment