[Freeciv-Dev] Re: (PR#9882) Continent and Ocean numbers
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9882 >
Mateusz Stefek wrote:
> what exactly do you propose?
> what should map_get_continent return?
> an integer in range [1..map.num_continents + map.num_oceans]?
map.num_oceans should be dropped. map.num_continents should include
oceans. map_get_continent returns a value in [1..map.num_continents].
Maybe the special-casing for 0 can be dropped and the numbers change to
[0..map.num_continents-1].
I'm not sure that this is the best way. But I think it is the easiest.
jason
|
|