[Freeciv-Dev] Re: patch for "ran out of continents in client" bug
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Peter Schaefer wrote:
> I have implemented your suggestion with the genlist.
Ok. Actually, I since thought that maybe an athing (see
common/astring.c) may be more convenient, but never mind :-)
In climisc.c,
#define NCONT 256
can disappear, right?
As should the "ran out of continent numbers in client" check/message?
> The patch treats the arctic and antarctic as special cases, but it
> is switched off again for szenario maps (generator == 0), as entire
> europe becomes the arctic for that map of europe.
I think the arctic and antarctic need not be special cases
in the client. Indeed in general the client may not know if
a given square is connected to the arctic/antarctic, as in
the example you give. (Or there could be multiple disconnected
arctic/antarctic continents, although not sure if the _server_
handles this correctly. Ie in a scenario.) Actually, does the
client even know the correct value of generator? I suspect not.
> I've changed about 3 lines in map.h and map.c, and one line in climisc.c
> such that a short value is used instead of an unsigned char. Fortunately,
> all of the code I spotted that uses the continent value is reading it into
> an int, so everything should work ok.
Yep, thats what I hoped. Any reason for an explicitly signed short?
(I would have thought just short, or unsigned short if being explicit.)
-- David
|
|