(svn r698) Merge a town growth fix from TTDPatch - in arctic and desert climate, require food (and possibly water) only if the population is more than 90, so that the town gets chance to actually accept it. (By Marcin?)
authorpasky
Sat, 20 Nov 2004 02:36:10 +0000
changeset 468 9b8e5ac11758
parent 467 6f3e282fdce4
child 469 d26f0e5705dc
(svn r698) Merge a town growth fix from TTDPatch - in arctic and desert climate, require food (and possibly water) only if the population is more than 90, so that the town gets chance to actually accept it. (By Marcin?)
town_cmd.c
--- a/town_cmd.c	Sat Nov 20 02:25:31 2004 +0000
+++ b/town_cmd.c	Sat Nov 20 02:36:10 2004 +0000
@@ -1612,10 +1612,10 @@
 	}
 
 	if (_opt.landscape == LT_HILLY) {
-		if (GET_TILEHEIGHT(t->xy) >= _opt.snow_line &&	t->act_food == 0)
+ 		if (GET_TILEHEIGHT(t->xy) >= _opt.snow_line && t->act_food == 0 && t->population > 90)
 			return;
 	} else if (_opt.landscape == LT_DESERT) {
-		if (GetMapExtraBits(t->xy) == 1 && (t->act_food==0 || t->act_water==0))
+ 		if (GetMapExtraBits(t->xy) == 1 && (t->act_food==0 || t->act_water==0) && t->population > 60)
 			return;
 	}