URL:
  <http://gna.org/bugs/?19539>

                 Summary: Unused definition WORKER_FEAR_FACTOR
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Sun Mar 11 14:13:42 2012
                Category: ai
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: In Progress
             Assigned to: jtn
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: Any
         Planned Release: 

    _______________________________________________________

Details:

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
<http://svn.gna.org/viewcvs/freeciv?revision=10431&view=revision>. Originally
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
please...)




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?19539>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to