Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: [PATCH] bugfix for wrapping problem
Home

[Freeciv-Dev] Re: [PATCH] bugfix for wrapping problem

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>
Cc: Freeciv developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [PATCH] bugfix for wrapping problem
From: Trent Piepho <xyzzy@xxxxxxxxxxxxx>
Date: Sat, 25 Aug 2001 13:59:29 -0700 (PDT)

On Sat, 25 Aug 2001, Ross W. Wetmore wrote:
> We should be careful to distinguish the critical objection in this
> thread.
> 
> Wrapping is *good* when the coordinate is continuous in that direction.
> Having tiles move off one side and onto another allows one to center a
> field-of-view for improved local interpretation.

When I say wrapping the map around would be a PITA in code and undesirable
behavior in the first place, I'm not talking about that.  If the map is 10
tiles wide, and the player has selected a X origin on the map canvas of 7,
then the client would should tiles 7, 8, 9, 0, 1, 2, 3, 4, 5, and 6, in that
order from left to right.  For a map that wraps around east/west of course. 
It should not show tiles 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 if the
canvas is wide enough for it.



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