Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2005:
[Freeciv-Dev] Re: (PR#12950) Failed sanity check in latest cvs.
Home

[Freeciv-Dev] Re: (PR#12950) Failed sanity check in latest cvs.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: matte@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12950) Failed sanity check in latest cvs.
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 2 May 2005 15:04:53 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12950 >

Benedict Adamson wrote:

> I'd say that was crying out for a function called add_unit_sight_points. 
> I did a bit more work on the problem between my previous post and yours, 
> producing the following:

Problem is you usually have to add on the new sight points before
removing the existing sight points, even if this seems backwards.

When adding a fortress:

  add sight points from watchtower
  remove sight points from no watchtower

When removing a fortress:

  add sight points from no-watchtower
  remove sign points from watchtower

which is why there is no such helper code yet (but there is a ticket for
it somewhere, stalled).

-jason





[Prev in Thread] Current Thread [Next in Thread]