Merge branch upstream/master
This commit is contained in:
@@ -10,7 +10,6 @@ static const SettingDesc _currency_settings[] = {
|
||||
};
|
||||
[templates]
|
||||
SDT_VAR = SDT_VAR($base, $var, $type, $flags, $guiflags, $def, $min, $max, $interval, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
|
||||
SDT_CHR = SDT_CHR($base, $var, $flags, $guiflags, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
|
||||
SDT_STR = SDT_STR($base, $var, $type, $flags, $guiflags, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
|
||||
SDT_END = SDT_END()
|
||||
|
||||
@@ -42,9 +41,10 @@ def = 1
|
||||
min = 0
|
||||
max = UINT16_MAX
|
||||
|
||||
[SDT_CHR]
|
||||
[SDT_STR]
|
||||
base = CurrencySpec
|
||||
var = separator
|
||||
type = SLE_STRBQ
|
||||
def = "".""
|
||||
cat = SC_BASIC
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@ static const char *_autosave_interval = "off|monthly|quarterly|half year|yearly"
|
||||
static const char *_save_to_network = "disabled|enabled|ask";
|
||||
static const char *_roadsides = "left|right";
|
||||
static const char *_savegame_date = "long|short|iso";
|
||||
static const char *_server_langs = "ANY|ENGLISH|GERMAN|FRENCH|BRAZILIAN|BULGARIAN|CHINESE|CZECH|DANISH|DUTCH|ESPERANTO|FINNISH|HUNGARIAN|ICELANDIC|ITALIAN|JAPANESE|KOREAN|LITHUANIAN|NORWEGIAN|POLISH|PORTUGUESE|ROMANIAN|RUSSIAN|SLOVAK|SLOVENIAN|SPANISH|SWEDISH|TURKISH|UKRAINIAN|AFRIKAANS|CROATIAN|CATALAN|ESTONIAN|GALICIAN|GREEK|LATVIAN";
|
||||
static const char *_osk_activation = "disabled|double|single|immediately";
|
||||
static const char *_settings_profiles = "easy|medium|hard";
|
||||
static const char *_news_display = "off|summarized|full";
|
||||
|
||||
@@ -77,6 +77,12 @@ var = _video_hw_accel
|
||||
def = true
|
||||
cat = SC_BASIC
|
||||
|
||||
[SDTG_BOOL]
|
||||
name = ""video_vsync""
|
||||
var = _video_vsync
|
||||
def = false
|
||||
cat = SC_BASIC
|
||||
|
||||
[SDTG_OMANY]
|
||||
name = ""support8bpp""
|
||||
type = SLE_UINT8
|
||||
|
||||
@@ -107,9 +107,6 @@ static size_t ConvertLandscape(const char *value);
|
||||
#define SDT_STR(base, var, type, flags, guiflags, def, str, strhelp, strval, proc, from, to, cat, extra, startup)\
|
||||
SDT_GENERAL(#var, SDT_STRING, SL_STR, type, flags, guiflags, base, var, sizeof(((base*)8)->var), def, 0, 0, 0, nullptr, str, strhelp, strval, proc, nullptr, from, to, cat, extra, startup)
|
||||
|
||||
#define SDT_CHR(base, var, flags, guiflags, def, str, strhelp, strval, proc, from, to, cat, extra, startup)\
|
||||
SDT_GENERAL(#var, SDT_STRING, SL_VAR, SLE_CHAR, flags, guiflags, base, var, 1, def, 0, 0, 0, nullptr, str, strhelp, strval, proc, nullptr, from, to, cat, extra, startup)
|
||||
|
||||
#define SDT_OMANY(base, var, type, flags, guiflags, def, max, full, str, strhelp, strval, proc, from, to, load, cat, extra, startup)\
|
||||
SDT_GENERAL(#var, SDT_ONEOFMANY, SL_VAR, type, flags, guiflags, base, var, 1, def, 0, max, 0, full, str, strhelp, strval, proc, load, from, to, cat, extra, startup)
|
||||
|
||||
|
||||
@@ -3573,7 +3573,7 @@ cat = SC_BASIC
|
||||
var = music.music_vol
|
||||
type = SLE_UINT8
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
def = 127
|
||||
def = 50
|
||||
min = 0
|
||||
max = 127
|
||||
interval = 1
|
||||
@@ -3583,7 +3583,7 @@ cat = SC_BASIC
|
||||
var = music.effect_vol
|
||||
type = SLE_UINT8
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
def = 127
|
||||
def = 100
|
||||
min = 0
|
||||
max = 127
|
||||
interval = 1
|
||||
@@ -4112,16 +4112,6 @@ def = 0
|
||||
min = 0
|
||||
max = MAX_CLIENTS
|
||||
|
||||
[SDTC_OMANY]
|
||||
var = network.server_lang
|
||||
type = SLE_UINT8
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
guiflags = SGF_NETWORK_ONLY
|
||||
def = 0
|
||||
max = 35
|
||||
full = _server_langs
|
||||
cat = SC_BASIC
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = network.reload_cfg
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
@@ -4130,21 +4120,12 @@ def = false
|
||||
cat = SC_EXPERT
|
||||
|
||||
[SDTC_STR]
|
||||
var = network.last_host
|
||||
var = network.last_joined
|
||||
type = SLE_STRB
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
def = """"
|
||||
cat = SC_EXPERT
|
||||
|
||||
[SDTC_VAR]
|
||||
var = network.last_port
|
||||
type = SLE_UINT16
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
def = 0
|
||||
min = 0
|
||||
max = UINT16_MAX
|
||||
cat = SC_EXPERT
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = network.no_http_content_downloads
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
|
||||
@@ -54,7 +54,7 @@ static const SpriteID SPR_LARGE_SMALL_WINDOW = 682;
|
||||
|
||||
/** Extra graphic spritenumbers */
|
||||
static const SpriteID SPR_OPENTTD_BASE = 4896;
|
||||
static const uint16 OPENTTD_SPRITE_COUNT = 186;
|
||||
static const uint16 OPENTTD_SPRITE_COUNT = 191;
|
||||
|
||||
/* Halftile-selection sprites */
|
||||
static const SpriteID SPR_HALFTILE_SELECTION_FLAT = SPR_OPENTTD_BASE;
|
||||
@@ -166,6 +166,12 @@ static const SpriteID SPR_WINDOW_DEFSIZE = SPR_OPENTTD_BASE + 168;
|
||||
static const SpriteID SPR_RENAME = SPR_OPENTTD_BASE + 184;
|
||||
static const SpriteID SPR_GOTO_LOCATION = SPR_OPENTTD_BASE + 185;
|
||||
|
||||
static const SpriteID SPR_CHAT = SPR_OPENTTD_BASE + 186;
|
||||
static const SpriteID SPR_ADMIN = SPR_OPENTTD_BASE + 187;
|
||||
static const SpriteID SPR_JOIN = SPR_OPENTTD_BASE + 188;
|
||||
static const SpriteID SPR_PLAYER_SELF = SPR_OPENTTD_BASE + 189;
|
||||
static const SpriteID SPR_PLAYER_HOST = SPR_OPENTTD_BASE + 190;
|
||||
|
||||
static const SpriteID SPR_IMG_CARGOFLOW = SPR_OPENTTD_BASE + 174;
|
||||
|
||||
static const SpriteID SPR_SIGNALS_BASE = SPR_OPENTTD_BASE + OPENTTD_SPRITE_COUNT;
|
||||
|
||||
@@ -176,6 +176,7 @@ static const PluralForm _plural_forms[] = {
|
||||
{ 2, "Two forms: cases for numbers ending with a consonant, and with a vowel.", "\"yeong,il,sam,yuk,chil,pal\" \"i,sa,o,gu\"" },
|
||||
{ 4, "Four forms: special cases for 1, 0 and numbers ending in 02 to 10, and numbers ending in 11 to 19.", "\"1\" \"0,2..10,102..110,202..210,...\" \"11..19,111..119,211..219,...\" \"other\"" },
|
||||
{ 4, "Four forms: special cases for 1 and 11, 2 and 12, 3..10 and 13..19.", "\"1,11\" \"2,12\" \"3..10,13..19\" \"other\"" },
|
||||
{ 3, "Three forms: special cases for 1, 0 and numbers ending in 01 to 19.", "\"1\" \"0,2..19,101..119,201..219,...\" \"other\"" },
|
||||
};
|
||||
|
||||
/* Flags:
|
||||
|
||||
Reference in New Issue
Block a user