Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2003:
[Freeciv-Dev] (PR#6721) A Quincuncial topology
Home

[Freeciv-Dev] (PR#6721) A Quincuncial topology

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mburda@xxxxxxxxx, rt-guest@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#6721) A Quincuncial topology
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 6 Dec 2003 23:14:22 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=6721 >

> [jdorje - Sun Dec 07 07:05:42 2003]:

> After getting it to work, I ran a quick test with topology 5 (standard
> east-west wrapping, quincuncial north-south wrapping).

I think the code in set_mapview_origin should be:

  if (XWRAP_TYPE_IS(WT_NONE)) {
    nat_x0 = CLIP(xmin, nat_x0, xmax - xsize);
  } else {
    nat_x0 = FC_WRAP(nat_x0, map.xsize);
  }

  if (YWRAP_TYPE_IS(WT_NONE)) {
    nat_y0 = CLIP(ymin, nat_y0, ymax - ysize);
  } else {
    nat_y0 = FC_WRAP(nat_y0, map.ysize);
  }

instead of what it is now.  Changing that fixes most of the mapview
disorientation problems (the mapview is still unexpectedly flipped).

jason



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