|
|
@ -824,15 +824,14 @@ misrepresented as being the original software.
|
|
|
|
3. This notice may not be removed or altered from any source distribution.
|
|
|
|
3. This notice may not be removed or altered from any source distribution.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
// Utility function
|
|
|
|
// Utility function
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
static std::pair<bool, bool> check_tropicality(df::region_map_entry& region,
|
|
|
|
std::pair<bool, bool> check_tropicality(df::region_map_entry& region,
|
|
|
|
|
|
|
|
int y_pos
|
|
|
|
int y_pos
|
|
|
|
)
|
|
|
|
)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int flip_latitude = df::global::world->world_data->flip_latitude;
|
|
|
|
int flip_latitude = df::global::world->world_data->flip_latitude;
|
|
|
|
|
|
|
|
|
|
|
|
bool is_possible_tropical_area_by_latitude = false;
|
|
|
|
bool is_possible_tropical_area_by_latitude = false;
|
|
|
@ -891,18 +890,18 @@ namespace {
|
|
|
|
return std::pair<bool, bool>(is_possible_tropical_area_by_latitude,
|
|
|
|
return std::pair<bool, bool>(is_possible_tropical_area_by_latitude,
|
|
|
|
is_tropical_area_by_latitude
|
|
|
|
is_tropical_area_by_latitude
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
// Utility function
|
|
|
|
// Utility function
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// return some unknow parameter as a percentage
|
|
|
|
// return some unknow parameter as a percentage
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
int get_region_parameter(int y,
|
|
|
|
static int get_region_parameter(int y,
|
|
|
|
int x
|
|
|
|
int x
|
|
|
|
)
|
|
|
|
)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int world_height = df::global::world->world_data->world_height;
|
|
|
|
int world_height = df::global::world->world_data->world_height;
|
|
|
|
if (world_height > 65) // Medium and large worlds
|
|
|
|
if (world_height > 65) // Medium and large worlds
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -979,7 +978,6 @@ namespace {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return 100;
|
|
|
|
return 100;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|