mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-13 07:10:57 +00:00
Merge branch 'pr-227' into jgrpp
Adjust settings patxname and guiflags
This commit is contained in:
commit
c45b4414df
@ -995,7 +995,7 @@ static void CreateDesertOrRainForest()
|
||||
{
|
||||
TileIndex update_freq = MapSize() / 4;
|
||||
const TileIndexDiffC *data;
|
||||
uint max_desert_height = CeilDiv(_settings_game.construction.max_heightlevel, 4);
|
||||
uint max_desert_height = _settings_game.game_creation.rainforest_line_height;
|
||||
|
||||
for (TileIndex tile = 0; tile != MapSize(); ++tile) {
|
||||
if ((tile % update_freq) == 0) IncreaseGeneratingWorldProgress(GWP_LANDSCAPE);
|
||||
|
@ -1447,6 +1447,8 @@ STR_CONFIG_SETTING_OIL_REF_EDGE_DISTANCE :Maximum distanc
|
||||
STR_CONFIG_SETTING_OIL_REF_EDGE_DISTANCE_HELPTEXT :Limit for how far from the map border oil refineries and oil rigs can be constructed. On island maps this ensures they are near the coast. On maps larger than 256 tiles, this value is scaled up.
|
||||
STR_CONFIG_SETTING_SNOWLINE_HEIGHT :Snow line height: {STRING2}
|
||||
STR_CONFIG_SETTING_SNOWLINE_HEIGHT_HELPTEXT :Control at what height snow starts in sub-arctic landscape. Snow also affects industry generation and town growth requirements
|
||||
STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT :Rainforest line height: {STRING}
|
||||
STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT_HELPTEXT :Control at what height rainforest starts in sub-tropic landscape. Rainforests also affect industry generation and town growth requirements
|
||||
STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN :Roughness of terrain: {STRING2}
|
||||
STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN_HELPTEXT :(TerraGenesis only) Choose the frequency of hills: Smooth landscapes have fewer, more wide-spread hills. Rough landscapes have many hills, which may look repetitive
|
||||
STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN_VERY_SMOOTH :Very Smooth
|
||||
|
@ -1273,6 +1273,8 @@ STR_CONFIG_SETTING_OIL_REF_EDGE_DISTANCE :Maximum distanc
|
||||
STR_CONFIG_SETTING_OIL_REF_EDGE_DISTANCE_HELPTEXT :Oil refineries are only constructed near the map border, that is at the coast for island maps
|
||||
STR_CONFIG_SETTING_SNOWLINE_HEIGHT :Snow line height: {STRING}
|
||||
STR_CONFIG_SETTING_SNOWLINE_HEIGHT_HELPTEXT :Control at what height snow starts in sub-arctic landscape. Snow also affects industry generation and town growth requirements
|
||||
STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT :Rainforest line height: {STRING}
|
||||
STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT_HELPTEXT :Control at what height rainforest starts in sub-tropic landscape. Rainforests also affect industry generation and town growth requirements
|
||||
STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN :Roughness of terrain: {STRING}
|
||||
STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN_HELPTEXT :(TerraGenesis only) Choose the frequency of hills: Smooth landscapes have fewer, more wide-spread hills. Rough landscapes have many hills, which may look repetitive
|
||||
STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN_VERY_SMOOTH :Very Smooth
|
||||
|
@ -1339,6 +1339,8 @@ STR_CONFIG_SETTING_OIL_REF_EDGE_DISTANCE :Maximum distanc
|
||||
STR_CONFIG_SETTING_OIL_REF_EDGE_DISTANCE_HELPTEXT :Limit for how far from the map border oil refineries and oil rigs can be constructed. On island maps this ensures they are near the coast. On maps larger than 256 tiles, this value is scaled up.
|
||||
STR_CONFIG_SETTING_SNOWLINE_HEIGHT :Snow line height: {STRING}
|
||||
STR_CONFIG_SETTING_SNOWLINE_HEIGHT_HELPTEXT :Control at what height snow starts in sub-arctic landscape. Snow also affects industry generation and town growth requirements
|
||||
STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT :Rainforest line height: {STRING}
|
||||
STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT_HELPTEXT :Control at what height rainforest starts in sub-tropic landscape. Rainforests also affect industry generation and town growth requirements
|
||||
STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN :Roughness of terrain: {STRING}
|
||||
STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN_HELPTEXT :(TerraGenesis only) Choose the frequency of hills: Smooth landscapes have fewer, more wide-spread hills. Rough landscapes have many hills, which may look repetitive
|
||||
STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN_VERY_SMOOTH :Very Smooth
|
||||
|
@ -1814,6 +1814,7 @@ static SettingsContainer &GetSettingsTree()
|
||||
genworld->Add(new SettingEntry("game_creation.tgen_smoothness"));
|
||||
genworld->Add(new SettingEntry("game_creation.variety"));
|
||||
genworld->Add(new SettingEntry("game_creation.snow_line_height"));
|
||||
genworld->Add(new SettingEntry("game_creation.rainforest_line_height"));
|
||||
genworld->Add(new SettingEntry("game_creation.amount_of_rivers"));
|
||||
genworld->Add(new SettingEntry("game_creation.tree_placer"));
|
||||
genworld->Add(new SettingEntry("vehicle.road_side"));
|
||||
|
@ -361,6 +361,7 @@ struct GameCreationSettings {
|
||||
byte land_generator; ///< the landscape generator
|
||||
byte oil_refinery_limit; ///< distance oil refineries allowed from map edge
|
||||
byte snow_line_height; ///< the configured snow line height
|
||||
byte rainforest_line_height; ///< the configured rainforest line height
|
||||
byte tgen_smoothness; ///< how rough is the terrain from 0-3
|
||||
byte tree_placer; ///< the tree placer algorithm
|
||||
byte heightmap_rotation; ///< rotation director for the heightmap
|
||||
|
@ -2217,6 +2217,21 @@ strhelp = STR_CONFIG_SETTING_SNOWLINE_HEIGHT_HELPTEXT
|
||||
strval = STR_JUST_COMMA
|
||||
cat = SC_BASIC
|
||||
|
||||
[SDT_VAR]
|
||||
base = GameSettings
|
||||
var = game_creation.rainforest_line_height
|
||||
type = SLE_UINT8
|
||||
guiflags = SGF_NEWGAME_ONLY | SGF_SCENEDIT_TOO
|
||||
def = 8
|
||||
min = 1
|
||||
max = 255
|
||||
interval = 1
|
||||
str = STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT
|
||||
strhelp = STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT_HELPTEXT
|
||||
strval = STR_JUST_COMMA
|
||||
cat = SC_BASIC
|
||||
patxname = ""rainforest_line_height.game_creation.rainforest_line_height""
|
||||
|
||||
;;game_creation.desert_amount
|
||||
[SDT_NULL]
|
||||
length = 1
|
||||
|
Loading…
Reference in New Issue
Block a user