[freeciv-ai] (PR#9586) Bug: auto-settlers do not build farmland (double-
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9586 >
> [bhudson - Mon Aug 02 21:00:43 2004]:
> If you hit 'a' on a worker, even if you have refrigeration and cities
> with supermarkets, the worker won't build farmland.
This is a recent bug, right? Can you track down when this started? Was
it this commit
date: 2004/07/30 18:35:03; author: per; state: Exp; lines: +24 -22
This patch fixes 3 bugs in settler activities.
1. The biggest bug is that activity times are multiplied by 10. But
settlers.c doesn't know about this. Thus the calculated times to do any
activity are 10x too high (on top of the move time, which is correct).
No doubt this has something to do with the reported problems with
2. A second bug is in the considering of making a road plus a rail in
settlers.c. There is a can_rr variable that is used to see if the
settler can make a railroad. But it's not used to see if the settler
can make a road plus a railroad. The fix is easy.
3. The third bug is that in unittools.c when adding on to the
activity_count there is a special case for when the unit has nove move
points left. This is a bug because the amount added on has nothing to do
with the MP. So an engineer with 1/3 MP left gets the same amount of
work done as if it had 2 MP, but with 0 MP left it only gets half this
Added a new function get_turns_for_activity (equivalent to the function
needed by gui-ftwl). Moved get_settler_speed into unit.c and changed it
to do all the work of calculating the speed (instead of just half of the
Patch by Jason in PR#9561.
I don't see how this patch could have caused this but it is the only
candidate. I know this functionality worked not too long ago.
- [freeciv-ai] (PR#9586) Bug: auto-settlers do not build farmland (double-irrigate),
Jason Short <=