Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] Re: (PR#8627) best overview for iso-maps
Home

[Freeciv-Dev] Re: (PR#8627) best overview for iso-maps

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#8627) best overview for iso-maps
From: "Marcelo Burda" <mburda@xxxxxxxxx>
Date: Sun, 9 May 2004 08:00:49 -0700
Reply-to: rt@xxxxxxxxxxx

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

Le dim 09/05/2004 à 16:30, Jason Short a écrit :
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=8627 >

> > +  /* if there are no wraps in x axes, we need to correct
> > +     return value of the unused(black) space in iso view */
> > +  if(topo_has_flag(TF_ISO) && !topo_has_flag(TF_WRAPX)) {
> > +      int dx = (ntl_y & 1);
> > +    if ( ntl_x >= map.xsize * 2 - 2 + dx ) {
> > +      ntl_x -= 1;
> > +    } else  if (ntl_x < dx ) {
> > +      ntl_x += 1;
> > +    }
> > +  }

> if you like we can use there nearest_real_pos! but i no like it, in 
> generalized topologies
i ll delete the normalize_map_pos from this part of code, then we go be
forced to add this hack!, and until today this code hard code wrapping
too!.

But if you realy no like it now. we can use nearest_real_pos, other 2
choice are not good (i think!)

> 
> jason
-- 
 . /  .     '    ,    .      (*)   '        `     '      `    .    
  |    ,  |   `     ,     .      ,   '  Marcelo Julián Burda      .
 /  '     \     `     \@_     '      .        '      `        '    
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




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