Complete.Org: Mailing Lists: Archives: freeciv-ai: November 2004:
[freeciv-ai] (PR#11009) AI Hunts Own Units
Home

[freeciv-ai] (PR#11009) AI Hunts Own Units

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: badamson@xxxxxxxxxxxxx
Subject: [freeciv-ai] (PR#11009) AI Hunts Own Units
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Nov 2004 10:50:54 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=11009 >

> [badamson@xxxxxxxxxxxxx - Sun Nov 14 03:45:02 2004]:
> 
> The ai_hunter_findjob function in aihunt.c contains the condition
>      if (!aplayer->is_alive || !is_player_dangerous(pplayer, aplayer)) {
> that condition should be
>      if (pplayer == aplayer || !aplayer->is_alive
>       || !is_player_dangerous(pplayer, aplayer)) {
> As the code stands, the AI will consider hunting its own units.

Is this a problem in S2_0 as well?

Will you make a patch?

jason




[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-ai] (PR#11009) AI Hunts Own Units, Jason Short <=