1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 10:15:36 +01:00

Use const and constexpr whenever possible.

This commit is contained in:
ZehMatt
2018-01-11 14:50:31 +01:00
committed by Michał Janiszewski
parent 81398d9225
commit 84f2917f59
129 changed files with 2719 additions and 2719 deletions

View File

@@ -6487,8 +6487,8 @@ const track_descriptor gTrackDescriptors[142] = {
};
#define CREATE_VEHICLE_INFO(VAR, ...) \
static const rct_vehicle_info VAR##_data [] = __VA_ARGS__ ; \
static const rct_vehicle_info_list VAR = { static_cast<uint16>(Util::CountOf(VAR##_data)), VAR##_data };
static constexpr const rct_vehicle_info VAR##_data [] = __VA_ARGS__ ; \
static constexpr const rct_vehicle_info_list VAR = { static_cast<uint16>(Util::CountOf(VAR##_data)), VAR##_data };
CREATE_VEHICLE_INFO(TrackVehicleInfo_8BE57A, {
{ 31, 16, 0, 0, 0, 0 }, { 30, 16, 0, 0, 0, 0 }, { 29, 16, 0, 0, 0, 0 }, { 28, 16, 0, 0, 0, 0 }, { 27, 16, 0, 0, 0, 0 },