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

[Freeciv-Dev] [Patch] for to players_iterate

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] [Patch] for to players_iterate
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 20 Feb 2002 00:05:52 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

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
server/meta.c were been eliminated completely. update_diplomatics also
got some more serve changes. And also srv_main was changed in a
non-trivial way.

        Raimar

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

Attachment: players_iterate1.diff.gz
Description: GNU Zip compressed data


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