[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
I sent You a buggy patch, here is the good one which works fine.
The main idea: Settler connects from the city in which he is in
or in its railroad zone(move cost = 0) to the nearest unconnected one.
To prevent using many settlers to do the same connection I added code:
if (p->connecting && warmap.cost[p->x][p->y] <= mv_rate)
It means that each railroad zone can only have one settler who
connects it to another one.
This code can only build railroads because I assume that distance
connected cities = 0.
|[Prev in Thread]
||[Next in Thread]|