31static void fmfill(
int x,
int y,
int c,
int r);
159 fmfill(xc-x, yc-y, nn, r);
160 fmfill(xc-y, yc-x, nn, r);
161 fmfill(xc+y, yc-x, nn, r);
162 fmfill(xc+x, yc-y, nn, r);
163 fmfill(xc-x, yc+y, nn, r);
164 fmfill(xc-y, yc+x, nn, r);
165 fmfill(xc+y, yc+x, nn, r);
166 fmfill(xc+x, yc+y, nn, r);
170 p += 4 * (x++ - y--) + 10;
179static void fmfill(
int x,
int y,
int c,
int r)
181 int x_less, x_more, y_less, y_more;
182 struct tile *ptileXY;
183 struct tile *ptileX2Y;
184 struct tile *ptileX1Y;
185 struct tile *ptileXY2;
186 struct tile *ptileXY1;
187 struct tile *ptileX2Y1;
188 struct tile *ptileX2Y2;
189 struct tile *ptileX1Y2;
190 struct tile *ptileX1Y1;
273 ele = ele +
hmap(tile2);
294 bool choose_mountain;
322 choose_mountain =
FALSE;
325 if (choose_mountain) {
329 }
else if (choose_hill) {
347 choose_mountain =
fc_rand(10000) < 10;
348 choose_hill =
fc_rand(10000) < 10;
349 if (choose_mountain) {
353 }
else if (choose_hill) {
void make_fracture_map(void)
static int local_ave_elevation(struct tile *ptile)
void make_fracture_relief(void)
static void fmfill(int x, int y, int c, int r)
static map_landmass * landmass
static void circle_bresenham(int xc, int yc, int r, int nn)
static map_point * fracture_points
bool area_is_too_flat(struct tile *ptile, int thill, int my_height)
struct tile * native_pos_to_tile(const struct civ_map *nmap, int nat_x, int nat_y)
#define square_iterate(nmap, center_tile, radius, tile_itr)
#define square_iterate_end
#define whole_map_iterate(_map, _tile)
#define whole_map_iterate_end
void map_set_placed(struct tile *ptile)
bool not_placed(const struct tile *ptile)
struct terrain * pick_terrain(enum mapgen_terrain_property target, enum mapgen_terrain_property prefer, enum mapgen_terrain_property avoid)
#define adjust_int_map(int_map, int_map_max)
struct civ_map::@41::@43 server
int count_terrain_class_near_tile(const struct civ_map *nmap, const struct tile *ptile, bool cardinal_only, bool percentage, enum terrain_class tclass)
void tile_set_terrain(struct tile *ptile, struct terrain *pterrain)