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:
@@ -508,7 +508,7 @@ static StringID TTDPStringIDToOTTDStringIDMapping(StringID str)
|
||||
assert(!IsInsideMM(str, 0xD000, 0xD7FF));
|
||||
|
||||
#define TEXTID_TO_STRINGID(begin, end, stringid, stringend) \
|
||||
assert_compile(stringend - stringid == end - begin); \
|
||||
static_assert(stringend - stringid == end - begin); \
|
||||
if (str >= begin && str <= end) return str + (stringid - begin)
|
||||
|
||||
/* We have some changes in our cargo strings, resulting in some missing. */
|
||||
@@ -9004,7 +9004,8 @@ static void InitializeGRFSpecial()
|
||||
| (1 << 0x1E) // variablerunningcosts
|
||||
| (1 << 0x1F); // any switch is on
|
||||
|
||||
_ttdpatch_flags[4] = (1 << 0x00); // larger persistent storage
|
||||
_ttdpatch_flags[4] = (1 << 0x00) // larger persistent storage
|
||||
| ((_settings_game.economy.inflation ? 1 : 0) << 0x01); // inflation is on
|
||||
}
|
||||
|
||||
/** Reset and clear all NewGRF stations */
|
||||
@@ -9342,7 +9343,7 @@ GRFFile::GRFFile(const GRFConfig *config)
|
||||
|
||||
/* Copy the initial parameter list
|
||||
* 'Uninitialised' parameters are zeroed as that is their default value when dynamically creating them. */
|
||||
assert_compile(lengthof(this->param) == lengthof(config->param) && lengthof(this->param) == 0x80);
|
||||
static_assert(lengthof(this->param) == lengthof(config->param) && lengthof(this->param) == 0x80);
|
||||
|
||||
assert(config->num_params <= lengthof(config->param));
|
||||
this->param_end = config->num_params;
|
||||
@@ -9981,8 +9982,7 @@ void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage, S
|
||||
return;
|
||||
}
|
||||
|
||||
free(config->full_filename);
|
||||
config->full_filename = nullptr;
|
||||
config->full_filename.clear();
|
||||
FioOpenFile(file_index, filename, subdir, &(config->full_filename));
|
||||
_cur.file_index = file_index; // XXX
|
||||
_palette_remap_grf[_cur.file_index] = (config->palette & GRFP_USE_MASK);
|
||||
|
Reference in New Issue
Block a user