53 factor =
MIN(factor, 0.1);
84 if (
hmap(ptile) == 0) {
91 hmap(ptile) /= factor;
128 if (((
yb -
yt <= 0) || (
xr -
xl <= 0))
129 || ((
yb -
yt == 1) && (
xr -
xl == 1))) {
147#define set_midpoints(X, Y, V) \
149 struct tile *ptile = native_pos_to_tile(&(wld.map), (X), (Y)); \
150 if (map_colatitude(ptile) <= ICE_BASE_LEVEL / 2) { \
152 hmap(ptile) = (V) * (100 - wld.map.server.flatpoles) / 100; \
153 } else if (near_singularity(ptile) \
154 || hmap(ptile) != 0) { \
172 ((val[0][0] + val[0][1] + val[1][0] + val[1][1]) / 4
303 ptile->altitude =
hmap(ptile);
static void gen5rec(int step, int xl, int yt, int xr, int yb)
void renormalize_hmap_poles(void)
void height_map_to_map(void)
static float hmap_pole_factor(struct tile *ptile)
void normalize_hmap_poles(void)
#define set_midpoints(X, Y, V)
bool area_is_too_flat(struct tile *ptile, int thill, int my_height)
void make_pseudofractal1_hmap(int extra_div)
void make_random_hmap(int smooth)
struct tile * native_pos_to_tile(const struct civ_map *nmap, int nat_x, int nat_y)
int map_distance(const struct tile *tile0, const struct tile *tile1)
#define square_iterate(nmap, center_tile, radius, tile_itr)
#define square_iterate_end
#define whole_map_iterate(_map, _tile)
#define current_wrap_has_flag(flag)
#define whole_map_iterate_end
int map_colatitude(const struct tile *ptile)
bool near_singularity(const struct tile *ptile)
void smooth_int_map(int *int_map, bool zeroes_at_edges)
#define do_in_map_pos_end
#define do_in_map_pos(nmap, ptile, nat_x, nat_y)
#define adjust_int_map(int_map, int_map_min, int_map_max)
#define INITIALIZE_ARRAY(array, size, value)
struct civ_map::@44::@46 server
#define MAP_NATIVE_HEIGHT