Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] Re: [Patch] for to players_iterate
Home

[Freeciv-Dev] Re: [Patch] for to players_iterate

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Cc: freeciv development list <freeciv-dev@xxxxxxxxxxx>, stuckey@xxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [Patch] for to players_iterate
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 21 Feb 2002 11:27:48 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Wed, Feb 20, 2002 at 11:41:53AM +0000, Gregory Berkolaiko wrote:
>  --- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > 
> > The attached patch replaces loops like
> > 
> >   for(i=0; i<game.nplayers; i++)
> > 
> > with players_iterate. 90% are straightforward. Can somebody look at
> > the change of ai_manage_diplomat? Especially what 
> > 
> >    if (!ctarget && aplayer) {
> > 
> > should mean? The loop in handle_unit_enter_city and one in
> 
> The use of aplayer seems severely wrong to me.
> Tony wrote it, ask him, but I think you are doing the right thing.
> 
> 
> As for the other issues, could you split your patch please (into
> stratightforward and structural changes).
> I don't want to spend hours trying to find the few real changes in the sea of
> straightforward ones.

Here are the real changes.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "USENET is *not* the non-clickable part of WWW!"

Attachment: players_iterate2.diff
Description: Text document


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