Merge branch 'master' into jgrpp
# Conflicts: # cmake/CompileFlags.cmake # src/crashlog.cpp # src/fileio.cpp # src/fileio_func.h # src/fios_gui.cpp # src/ini_load.cpp # src/ini_type.h # src/lang/english.txt # src/lang/german.txt # src/lang/korean.txt # src/network/network_client.cpp # src/order_base.h # src/order_cmd.cpp # src/os/windows/win32.cpp # src/road_cmd.cpp # src/saveload/saveload.cpp # src/saveload/saveload.h # src/settings.cpp # src/station_cmd.cpp # src/stdafx.h # src/table/settings.ini # src/tree_cmd.cpp # src/tree_gui.cpp # src/vehicle_base.h # src/video/cocoa/cocoa_v.mm # src/video/cocoa/event.mm # src/video/cocoa/wnd_quartz.mm # src/viewport.cpp # src/widgets/tree_widget.h
This commit is contained in:
@@ -406,7 +406,7 @@ extern const AirportSpec _origin_airport_specs[] = {
|
||||
AS_GENERIC(&_airportfta_oilrig, nullptr, _default_airports_rotation, 0, nullptr, 0, 1, 1, 0, 4, 0, 0, 0, ATP_TTDP_OILRIG, APC_HELIPORT, STR_NULL, 0, false),
|
||||
};
|
||||
|
||||
assert_compile(NEW_AIRPORT_OFFSET == lengthof(_origin_airport_specs));
|
||||
static_assert(NEW_AIRPORT_OFFSET == lengthof(_origin_airport_specs));
|
||||
|
||||
const AirportSpec AirportSpec::dummy = AS_GENERIC(&_airportfta_dummy, nullptr, _default_airports_rotation, 0, nullptr, 0, 0, 0, 0, 0, MIN_YEAR, MIN_YEAR, 0, ATP_TTDP_LARGE, APC_BEGIN, STR_NULL, 0, false);
|
||||
|
||||
|
@@ -104,7 +104,7 @@ static const AirportTileSpec _origin_airporttile_specs[] = {
|
||||
AT(3, 1), // APT_GRASS_FENCE_NE_FLAG_2
|
||||
};
|
||||
|
||||
assert_compile(NEW_AIRPORTTILE_OFFSET == lengthof(_origin_airporttile_specs));
|
||||
static_assert(NEW_AIRPORTTILE_OFFSET == lengthof(_origin_airporttile_specs));
|
||||
|
||||
#undef AT_NOANIM
|
||||
#undef AT
|
||||
|
@@ -5,7 +5,7 @@
|
||||
;
|
||||
|
||||
[pre-amble]
|
||||
extern char _config_language_file[MAX_PATH];
|
||||
extern std::string _config_language_file;
|
||||
|
||||
static const char *_support8bppmodes = "no|system|hardware";
|
||||
|
||||
@@ -116,9 +116,9 @@ type = SLE_STRQ
|
||||
var = _ini_blitter
|
||||
def = nullptr
|
||||
|
||||
[SDTG_STR]
|
||||
[SDTG_SSTR]
|
||||
name = ""language""
|
||||
type = SLE_STRB
|
||||
type = SLE_STR
|
||||
var = _config_language_file
|
||||
def = nullptr
|
||||
cat = SC_BASIC
|
||||
|
@@ -1129,4 +1129,4 @@ static const NIFeature * const _nifeatures[] = {
|
||||
&_nif_town, // GSF_FAKE_TOWNS
|
||||
&_nif_station_struct, // GSF_FAKE_STATION_STRUCT
|
||||
};
|
||||
assert_compile(lengthof(_nifeatures) == GSF_FAKE_END);
|
||||
static_assert(lengthof(_nifeatures) == GSF_FAKE_END);
|
||||
|
@@ -80,4 +80,4 @@ extern const PriceBaseSpec _price_base_specs[] = {
|
||||
{ 100, PCAT_RUNNING, GSF_END, PR_STATION_VALUE }, ///< PR_INFRASTRUCTURE_STATION
|
||||
{ 5000, PCAT_RUNNING, GSF_END, PR_BUILD_STATION_AIRPORT}, ///< PR_INFRASTRUCTURE_AIRPORT
|
||||
};
|
||||
assert_compile(lengthof(_price_base_specs) == PR_END);
|
||||
static_assert(lengthof(_price_base_specs) == PR_END);
|
||||
|
@@ -1793,7 +1793,7 @@ extver = SlXvFeatureTest(XSLFTO_AND, XSLFI_JOKERPP, SL_JOKER_1_24)
|
||||
var = gui.sg_new_nonstop
|
||||
from = SLV_22
|
||||
to = SLV_93
|
||||
def = false
|
||||
def = true
|
||||
|
||||
; station.nonuniform_stations
|
||||
[SDT_NULL]
|
||||
@@ -2024,7 +2024,8 @@ extver = SlXvFeatureTest(XSLFTO_AND, XSLFI_SPRINGPP)
|
||||
[SDT_BOOL]
|
||||
base = GameSettings
|
||||
var = economy.inflation
|
||||
def = true
|
||||
guiflags = SGF_NO_NETWORK
|
||||
def = false
|
||||
str = STR_CONFIG_SETTING_INFLATION
|
||||
strhelp = STR_CONFIG_SETTING_INFLATION_HELPTEXT
|
||||
cat = SC_BASIC
|
||||
@@ -3906,7 +3907,7 @@ var = gui.date_format_in_default_names
|
||||
type = SLE_UINT8
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
guiflags = SGF_MULTISTRING
|
||||
def = 0
|
||||
def = 2
|
||||
max = 2
|
||||
full = _savegame_date
|
||||
str = STR_CONFIG_SETTING_DATE_FORMAT_IN_SAVE_NAMES
|
||||
@@ -4565,7 +4566,7 @@ proc = RedrawScreen
|
||||
[SDTC_BOOL]
|
||||
var = gui.quick_goto
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
def = false
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_QUICKGOTO
|
||||
strhelp = STR_CONFIG_SETTING_QUICKGOTO_HELPTEXT
|
||||
cat = SC_BASIC
|
||||
@@ -4795,7 +4796,7 @@ max = 255
|
||||
[SDTC_BOOL]
|
||||
var = gui.show_track_reservation
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
def = false
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_SHOW_TRACK_RESERVATION
|
||||
strhelp = STR_CONFIG_SETTING_SHOW_TRACK_RESERVATION_HELPTEXT
|
||||
proc = RedrawScreen
|
||||
@@ -4868,7 +4869,7 @@ cat = SC_BASIC
|
||||
[SDTC_BOOL]
|
||||
var = gui.expenses_layout
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
def = false
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_EXPENSES_LAYOUT
|
||||
strhelp = STR_CONFIG_SETTING_EXPENSES_LAYOUT_HELPTEXT
|
||||
proc = RedrawScreen
|
||||
|
@@ -1583,11 +1583,11 @@ enum SpriteMasks {
|
||||
PALETTE_MASK = MAX_PALETTES - 1, ///< The mask for the auxiliary sprite (the one that takes care of recolouring)
|
||||
};
|
||||
|
||||
assert_compile( (1 << TRANSPARENT_BIT & SPRITE_MASK) == 0 );
|
||||
assert_compile( (1 << RECOLOUR_BIT & SPRITE_MASK) == 0 );
|
||||
assert_compile( TRANSPARENT_BIT != RECOLOUR_BIT );
|
||||
assert_compile( (1 << TRANSPARENT_BIT & PALETTE_MASK) == 0);
|
||||
assert_compile( (1 << RECOLOUR_BIT & PALETTE_MASK) == 0 );
|
||||
static_assert( (1 << TRANSPARENT_BIT & SPRITE_MASK) == 0 );
|
||||
static_assert( (1 << RECOLOUR_BIT & SPRITE_MASK) == 0 );
|
||||
static_assert( TRANSPARENT_BIT != RECOLOUR_BIT );
|
||||
static_assert( (1 << TRANSPARENT_BIT & PALETTE_MASK) == 0);
|
||||
static_assert( (1 << RECOLOUR_BIT & PALETTE_MASK) == 0 );
|
||||
|
||||
|
||||
static const PaletteID PAL_NONE = 0;
|
||||
|
@@ -988,7 +988,7 @@ static const DrawTileSprites _station_display_datas_waypoint[] = {
|
||||
|
||||
/* Default waypoint is also drawn as fallback for NewGRF waypoints.
|
||||
* As these are drawn/build like stations, they may use the same number of layouts. */
|
||||
assert_compile(lengthof(_station_display_datas_rail) == lengthof(_station_display_datas_waypoint));
|
||||
static_assert(lengthof(_station_display_datas_rail) == lengthof(_station_display_datas_waypoint));
|
||||
|
||||
static const DrawTileSprites * const _station_display_datas[] = {
|
||||
_station_display_datas_rail,
|
||||
|
@@ -1788,7 +1788,7 @@ static const DrawBuildingsTileStruct _town_draw_tile_data[] = {
|
||||
};
|
||||
#undef M
|
||||
/** Make sure we have the right number of elements: 4 variants * 4 build stages for each house */
|
||||
assert_compile(lengthof(_town_draw_tile_data) == (NEW_HOUSE_OFFSET) * 4 * 4);
|
||||
static_assert(lengthof(_town_draw_tile_data) == (NEW_HOUSE_OFFSET) * 4 * 4);
|
||||
|
||||
/**
|
||||
* Describes the data that defines each house in the game
|
||||
@@ -2276,4 +2276,4 @@ static const HouseSpec _original_house_specs[] = {
|
||||
#undef MS
|
||||
|
||||
/** Make sure we have the right number of elements: one entry for each house */
|
||||
assert_compile(lengthof(_original_house_specs) == NEW_HOUSE_OFFSET);
|
||||
static_assert(lengthof(_original_house_specs) == NEW_HOUSE_OFFSET);
|
||||
|
@@ -63,6 +63,6 @@ static const byte _wagon_full_adder[] = {
|
||||
32, 32
|
||||
};
|
||||
|
||||
assert_compile(lengthof(_engine_sprite_base) == lengthof(_engine_sprite_and));
|
||||
assert_compile(lengthof(_engine_sprite_base) == lengthof(_engine_sprite_add));
|
||||
assert_compile(lengthof(_engine_sprite_base) == lengthof(_wagon_full_adder));
|
||||
static_assert(lengthof(_engine_sprite_base) == lengthof(_engine_sprite_and));
|
||||
static_assert(lengthof(_engine_sprite_base) == lengthof(_engine_sprite_add));
|
||||
static_assert(lengthof(_engine_sprite_base) == lengthof(_wagon_full_adder));
|
||||
|
Reference in New Issue
Block a user