[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]
<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
|
|