Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2003:
[Freeciv-Dev] Re: (PR#4701) autoattack oddities esp. with cruise missile
Home

[Freeciv-Dev] Re: (PR#4701) autoattack oddities esp. with cruise missile

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: andy@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4701) autoattack oddities esp. with cruise missiles
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 29 Jul 2003 06:49:37 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Andy Smith wrote:
> On Tue, Jul 29, 2003 at 12:10:43AM -0700, Jason Short wrote:


> Also, some places in the code check if the player is an AI first and
> then also check ai_handicap(), but others don't.  ai_handicap()
> itself checks first if the player is AI and always returns TRUE if
> not.
> 
> So, should new uses of ai_handicap() be doing their own checking of
> pplayer->ai.control or not?  The majority do not so am I to assume
> that those which do are old/redundant?

IMO:

- pplayer->ai.control should not be checked.

- ai_handicap() should be renamed to player_has_handicap() or some such.

jason




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