src/unmovable_cmd.cpp
branchnoai
changeset 9517 be1775555bbd
parent 6584 85b9e0da5754
child 6719 4cc327ad39d5
child 6919 339210ecccd3
child 9574 698395509d12
equal deleted inserted replaced
9516:defc90b7898a 9517:be1775555bbd
   342 	TileIndex tile;
   342 	TileIndex tile;
   343 	uint h;
   343 	uint h;
   344 	uint maxx;
   344 	uint maxx;
   345 	uint maxy;
   345 	uint maxy;
   346 
   346 
   347 	if (_opt.landscape == LT_CANDY) return;
   347 	if (_opt.landscape == LT_TOYLAND) return;
   348 
   348 
   349 	/* add radio tower */
   349 	/* add radio tower */
   350 	i = ScaleByMapSize(1000);
   350 	i = ScaleByMapSize(1000);
   351 	j = ScaleByMapSize(15); // maximum number of radio towers on the map
   351 	j = ScaleByMapSize(15); // maximum number of radio towers on the map
   352 	li = ScaleByMapSize1D((Random() & 3) + 7);
   352 	li = ScaleByMapSize1D((Random() & 3) + 7);
   360 			IncreaseGeneratingWorldProgress(GWP_UNMOVABLE);
   360 			IncreaseGeneratingWorldProgress(GWP_UNMOVABLE);
   361 			if (--j == 0) break;
   361 			if (--j == 0) break;
   362 		}
   362 		}
   363 	} while (--i);
   363 	} while (--i);
   364 
   364 
   365 	if (_opt.landscape == LT_DESERT) return;
   365 	if (_opt.landscape == LT_TROPIC) return;
   366 
   366 
   367 	/* add lighthouses */
   367 	/* add lighthouses */
   368 	i = li;
   368 	i = li;
   369 	maxx = MapMaxX();
   369 	maxx = MapMaxX();
   370 	maxy = MapMaxY();
   370 	maxy = MapMaxY();