Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] Re: (PR#9882) Continent and Ocean numbers
Home

[Freeciv-Dev] Re: (PR#9882) Continent and Ocean numbers

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mstefek@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9882) Continent and Ocean numbers
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Sep 2004 10:49:37 -0700
Reply-to: rt@xxxxxxxxxxx

<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




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