Summary: Unused definition WORKER_FEAR_FACTOR
Submitted by: jtn
Submitted on: Sun Mar 11 14:13:42 2012
Severity: 2 - Minor
Priority: 5 - Normal
Status: In Progress
Assigned to: jtn
Discussion Lock: Any
Operating System: Any
In autosettlers.c there's a definition:
/* if an enemy unit gets within this many turns of a worker, the worker
* flees */
#define WORKER_FEAR_FACTOR 2
However, this is never used anywhere (and I don't believe workers currently
have any such sense of self-preservation).
Digging into the history, this came in with r10431,
[http://bugs.freeciv.org/Ticket/Display.html?id=12977 RT #12977
a patch to clean up this pre-existing behaviour of autosettlers, it became a
patch to remove it for various reasons ("OK, v.2 of the patch. Autosettlers
now fear no evil."). But it looks like this was accidentally left in.
(Any proposals to attempt to reinstate such behaviour to another ticket
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list