equal
deleted
inserted
replaced
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(); |