tree_cmd.c
changeset 3017 a75caf4efa2d
parent 3003 821180e49591
child 3076 8b54ff8fa90a
equal deleted inserted replaced
3016:958672b0f8e2 3017:a75caf4efa2d
   536 void OnTick_Trees(void)
   536 void OnTick_Trees(void)
   537 {
   537 {
   538 	uint32 r;
   538 	uint32 r;
   539 	TileIndex tile;
   539 	TileIndex tile;
   540 	ClearGround ct;
   540 	ClearGround ct;
   541 	int tree;
   541 	TreeType tree;
   542 
   542 
   543 	/* place a tree at a random rainforest spot */
   543 	/* place a tree at a random rainforest spot */
   544 	if (_opt.landscape == LT_DESERT &&
   544 	if (_opt.landscape == LT_DESERT &&
   545 			(r = Random(), tile = RandomTileSeed(r), GetMapExtraBits(tile) == 2) &&
   545 			(r = Random(), tile = RandomTileSeed(r), GetMapExtraBits(tile) == 2) &&
   546 			IsTileType(tile, MP_CLEAR) &&
   546 			IsTileType(tile, MP_CLEAR) &&