Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2003:
[Freeciv-Dev] Re: (PR#4594) topology fix for goto route packet
Home

[Freeciv-Dev] Re: (PR#4594) topology fix for goto route packet

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4594) topology fix for goto route packet
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 26 Aug 2003 23:33:51 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Fri, Aug 22, 2003 at 02:14:12PM -0700, rwetmore@xxxxxxxxxxxx wrote:
> No, Mike.
> 
> You don't need to move to (-1,-1). Either it is an unreal coordinate if
> you don't wrap, or the origin can be shifted to make it so (which also
> makes it a sensible origin for array accesses and other usage). You
> cam move to (map.xsize-1, map.ysize-1) or one of the infinite other
> equivalent positions excluding the one special one in a wrapping topology.

Lay it out for me Ross. A server receives a PACKET_MOVE_UNIT with (-1,-1)
as the request.[xy] from a client. 
The unit is at (0,0). What ought the server do?

-mike



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