Complete.Org: Mailing Lists: Archives: freeciv-dev: July 1999:
[Freeciv-Dev] [PATCH] make Auto Settlers not to mine grasslands and plai
Home

[Freeciv-Dev] [PATCH] make Auto Settlers not to mine grasslands and plai

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] [PATCH] make Auto Settlers not to mine grasslands and plains
From: Markus Linnala <maage@xxxxxxxxx>
Date: 05 Jul 1999 02:53:55 +0300
Reply-to: Markus Linnala <maage@xxxxxxxxx>

I find it annoying that Auto Settlers make forests. It might be
good strategy to ai, as it couses massive pollution and
generally messes game. But if you try to make big cities which
make money by trading and don't generally pollute, it is not
your way to change plains to forests.


1999-07-05  Markus Linnala  <maage@xxxxxxxxx>

        * server/settlers.c (ai_calc_mine): comment out
          experimental part, as it causes Auto Settlers to mine
          plains and grasslands.

--- freeciv/server/settlers.c   Mon Jul  5 02:10:38 1999
+++ freeciv/server/settlers.c   Sun Jul  4 22:29:36 1999
@@ -521,6 +523,7 @@
 {
   int m, x = pcity->x + i - 2, y = pcity->y + j - 2;
   struct tile *ptile = map_get_tile(x, y);
+#if 0
   enum tile_terrain_type t = ptile->terrain;
   struct tile_type *type = get_tile_type(t);
   int s = ptile->special;
@@ -533,7 +536,9 @@
     ptile->terrain = t;
     ptile->special = s;
     return(m);
-  } else if ((ptile->terrain == T_HILLS || ptile->terrain == T_MOUNTAINS) &&
+  } else 
+#endif
+  if ((ptile->terrain == T_HILLS || ptile->terrain == T_MOUNTAINS) &&
       !(ptile->special&S_IRRIGATION) && !(ptile->special&S_MINE)) {
     map_set_special(x, y, S_MINE);
     m = city_tile_value(pcity, i, j, 0, 0);

-- 
//Markus

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