Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] (PR#10886) freeciv 2 beta 2: teams & ais
Home

[Freeciv-Dev] (PR#10886) freeciv 2 beta 2: teams & ais

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: kif@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#10886) freeciv 2 beta 2: teams & ais
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Mon, 8 Nov 2004 07:25:00 -0800
Reply-to: rt@xxxxxxxxxxx

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

> [per - Mon Nov 08 14:55:47 2004]:

> Thanks. Obvious bug:
> 
> diff -u -r1.48 advdiplomacy.c
> --- ai/advdiplomacy.c   31 Oct 2004 22:14:46 -0000      1.48
> +++ ai/advdiplomacy.c   8 Nov 2004 14:53:06 -0000
> @@ -137,6 +137,9 @@
>  static bool shared_vision_is_safe(struct player* pplayer,
>                                    struct player* aplayer)
>  {
> +  if (pplayer->team != TEAM_NONE && pplayer->team == aplayer->team) {
> +    return TRUE;
> +  }
>    players_iterate(eplayer) {
>      if (eplayer == pplayer || eplayer == aplayer) {
>        continue;
[..]
>   - Per
OK. But you should have used players_on_same_team() function.
--
mateusz


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