Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2000:
[Freeciv-Dev] Re: autosettler cleans pollution more
Home

[Freeciv-Dev] Re: autosettler cleans pollution more

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: autosettler cleans pollution more
From: Falk Hueffner <falk.hueffner@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: 17 Jun 2000 20:31:50 +0200

Jeff Mallatt <jjm@xxxxxxxxxxxx> writes:

> [1  <text/plain; us-ascii (7bit)>]
> This one-liner makes auto-settlers cleanup pollution more aggressively.  It
> should mitigate the multiple waves of global warming caused by AI players.
> [2 pollution-cleanup-0.diff <text/plain; us-ascii (7bit)>]
> diff -ru -X /home/jjm/cvs/no.freeciv FreecivCVS/server/settlers.c 
> freeciv/server/settlers.c
> --- FreecivCVS/server/settlers.c      Wed Jun 14 10:48:37 2000
> +++ freeciv/server/settlers.c Sat Jun 17 09:57:23 2000
> @@ -517,7 +517,7 @@
>    map_clear_special(x, y, S_POLLUTION);
>    m = city_tile_value(pcity, i, j, 0, 0);
>    map_set_special(x, y, S_POLLUTION);
> -  return(m);
> +  return(m * 4);  /* Pollution clean-up arbitrarily weighted more important. 
> */
>  }
>  
>  /**************************************************************************

Are you sure m is never zero, for example when evaluating Arctic or
similar? I suggest you add one or similar, or just always return 1000
:)

Also, I think the AI wouldn't cleanup pollution out of city radius,
but perhaps that is rather uncommon, so it doesn't really matter.

        Falk




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