// Note: The map_size variables MUST be powers of 2!
// This is because I'm using AND instead of MOD to clip coordinates.

//const  map_size_x   = 128;//512;
//const  map_size_y   = 128;//512;
#define   map_size_x  128 //512
#define   map_size_y  128 //512
#define  scale_area    2048
extern long  clip_mask_x, clip_mask_y;

#define  scale_area    2048
extern long scale_height;
extern long world_size_x,world_size_y;
extern long max_alt,min_alt;

typedef unsigned char map_t [ map_size_x ][ map_size_y ];

extern map_t far   alt_map;
extern map_t far   color_map;

void  WORLD_generate ( void );
