Khaligufzel / Dimensionfall

A survival game inspired by Cataclysm: Dark Days Ahead and Bright Nights.
GNU General Public License v3.0
16 stars 7 forks source link

Properly match road tiles adjacent to eachother #418

Closed snipercup closed 1 month ago

snipercup commented 1 month ago

When the roads are generated and the end up parallel to each other, we may see a case where one of the roads becomes a T-junction in an attempt to connect to the adjacent road. The connection doesn't happen, because the other road is already done processing.

There are multiple ways to solve this:

  1. wait until all the road positions are known before running the connection algorithm
  2. merge the roads