[Freeciv-Dev] Re: topology RFC (again)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
"Ross W. Wetmore" wrote:
>
> >- nearest_real_pos(&x, &y) adjusts x and y to be one of the nearest
> >positions to (x, y) that is contained in N. (NOTE that it is misnamed,
> >it should be nearest_normal_pos.) Since distance is poorly defined and
> >there may be more than one position with equal distance, the new set of
> >coordinates is not well-defined. Thus you should not assume anything
> >about this function.
>
> rename misnamed again, try: nearest_normal_map_pos()
>
> > It is definitely needed to keep the same behavior
> >in the user interface, unfortunately; in fact right now it is the same
> >as x=map_adjust_x(x),y=map_adjust_y(y) which is still used in many
> >places (mostly incorrectly). This should be renamed nearest_real_map_pos.
Oh, I understand your point now.
There is some confusion in my mind as to whether the current
nearest_real_pos is intended to return only normal (N(0, 0))
coordinates, or only does this as a side effect. Clearly the name
should be kept consistent with the behavior (and vice versa); the code
currently does assume that the returned position will be normal so
that's how it should be named.
jason
- [Freeciv-Dev] Re: topology RFC (again), (continued)
- [Freeciv-Dev] Re: topology RFC (again), Reinier Post, 2001/10/26
- [Freeciv-Dev] Re: topology RFC (again), Ross W. Wetmore, 2001/10/28
- [Freeciv-Dev] Re: topology RFC (again), Jason Dorje Short, 2001/10/28
- [Freeciv-Dev] Re: topology RFC (again), Ross W. Wetmore, 2001/10/29
- [Freeciv-Dev] Re: topology RFC (again), Jason Dorje Short, 2001/10/29
- [Freeciv-Dev] Re: topology RFC (again), Ross W. Wetmore, 2001/10/30
- [Freeciv-Dev] Re: topology RFC (again), Jason Dorje Short, 2001/10/30
- [Freeciv-Dev] Re: topology RFC (again), Ross W. Wetmore, 2001/10/30
- [Freeciv-Dev] Re: topology RFC (again), Jason Dorje Short, 2001/10/31
[Freeciv-Dev] Re: topology RFC (again),
Jason Dorje Short <=
[Freeciv-Dev] Re: topology RFC (again), Raimar Falke, 2001/10/29
|
|