[Freeciv-Dev] Re: (PR#8632) Easy way to set map size with auto ratios (s
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8632 >
Marcelo Burda wrote:
> + int size_max = MAP_MAX_LINEAR_SIZE / MAX(Xratio, Yratio * iso) / 2;
> + int size_min = MAP_MIN_LINEAR_SIZE / MIN(Xratio, Yratio * iso) / 2;
> + if (size < size_min) { size = size_min; };
> + if (size > size_max) { size = size_max; };
> + /* sanity check for extreme map.ratio
> + (as 9:1 or 1:9 (1:18 IN ISO!) and extreme map.size as (2 or 20)*/
> + assert(size_min <= size_max);
I'm not sure this check works. The size restriction is in _map_
coordinates whereas these calculations seem to be done in native
coordinates.
jason
- [Freeciv-Dev] Re: (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Jason Short, 2004/05/02
- [Freeciv-Dev] (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Marcelo Burda, 2004/05/04
- [Freeciv-Dev] Re: (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Jason Short, 2004/05/04
- [Freeciv-Dev] Re: (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Marcelo Burda, 2004/05/05
- [Freeciv-Dev] (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Marcelo Burda, 2004/05/05
- [Freeciv-Dev] Re: (PR#8632) Easy way to set map size with auto ratios (seteables if desired),
Jason Short <=
- [Freeciv-Dev] Re: (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Marcelo Burda, 2004/05/05
- [Freeciv-Dev] Re: (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Marcelo Burda, 2004/05/05
- [Freeciv-Dev] Re: (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Jason Short, 2004/05/05
- [Freeciv-Dev] Re: (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Marcelo Burda, 2004/05/05
- [Freeciv-Dev] Re: (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Jason Short, 2004/05/05
- [Freeciv-Dev] Re: (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Marcelo Burda, 2004/05/05
- [Freeciv-Dev] Re: (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Jason Short, 2004/05/05
- [Freeciv-Dev] Re: (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Marcelo Burda, 2004/05/05
- [Freeciv-Dev] (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Marcelo Burda, 2004/05/05
- [Freeciv-Dev] (PR#8632) Easy way to set map size with auto ratios (seteables if desired), Marcelo Burda, 2004/05/09
|
|