@@ -1056,9 +1056,9 @@ static ChangeInfoResult RailVehicleChang
}
switch (tracktype) {
case 0: _gted[e->index].railtypelabel = rvi->engclass >= 2 ? RAILTYPE_ELECTRIC_LABEL : RAILTYPE_RAIL_LABEL; break;
case 1: _gted[e->index].railtypelabel = RAILTYPE_MONO_LABEL; break;
case 2: _gted[e->index].railtypelabel = RAILTYPE_MAGLEV_LABEL; break;
case 0: _gted[e->index].railtypelabel = rvi->engclass >= 2 ? RAILTYPE_LABEL_ELECTRIC : RAILTYPE_LABEL_RAIL; break;
case 1: _gted[e->index].railtypelabel = RAILTYPE_LABEL_MONO; break;
case 2: _gted[e->index].railtypelabel = RAILTYPE_LABEL_MAGLEV; break;
default:
GrfMsg(1, "RailVehicleChangeInfo: Invalid track type {} specified, ignoring", tracktype);
break;
@@ -1195,8 +1195,8 @@ static ChangeInfoResult RailVehicleChang
if (_cur.grffile->railtype_list.empty()) {
/* Use traction type to select between normal and electrified
* rail only when no translation list is in place. */
if (_gted[e->index].railtypelabel == RAILTYPE_RAIL_LABEL && engclass >= EC_ELECTRIC) _gted[e->index].railtypelabel = RAILTYPE_ELECTRIC_LABEL;
if (_gted[e->index].railtypelabel == RAILTYPE_ELECTRIC_LABEL && engclass < EC_ELECTRIC) _gted[e->index].railtypelabel = RAILTYPE_RAIL_LABEL;
if (_gted[e->index].railtypelabel == RAILTYPE_LABEL_RAIL && engclass >= EC_ELECTRIC) _gted[e->index].railtypelabel = RAILTYPE_LABEL_ELECTRIC;
if (_gted[e->index].railtypelabel == RAILTYPE_LABEL_ELECTRIC && engclass < EC_ELECTRIC) _gted[e->index].railtypelabel = RAILTYPE_LABEL_RAIL;
rvi->engclass = engclass;
@@ -14,10 +14,10 @@
typedef uint32_t RailTypeLabel;
static const RailTypeLabel RAILTYPE_RAIL_LABEL = 'RAIL';
static const RailTypeLabel RAILTYPE_ELECTRIC_LABEL = 'ELRL';
static const RailTypeLabel RAILTYPE_MONO_LABEL = 'MONO';
static const RailTypeLabel RAILTYPE_MAGLEV_LABEL = 'MGLV';
static const RailTypeLabel RAILTYPE_LABEL_RAIL = 'RAIL';
static const RailTypeLabel RAILTYPE_LABEL_ELECTRIC = 'ELRL';
static const RailTypeLabel RAILTYPE_LABEL_MONO = 'MONO';
static const RailTypeLabel RAILTYPE_LABEL_MAGLEV = 'MGLV';
/**
* Enumeration for all possible railtypes.
@@ -14,8 +14,8 @@
typedef uint32_t RoadTypeLabel;
static const RoadTypeLabel ROADTYPE_ROAD_LABEL = 'ROAD';
static const RoadTypeLabel ROADTYPE_TRAM_LABEL = 'ELRL';
static const RoadTypeLabel ROADTYPE_LABEL_ROAD = 'ROAD';
static const RoadTypeLabel ROADTYPE_LABEL_TRAM = 'ELRL';
* The different roadtypes we support
@@ -90,7 +90,7 @@ static const RailTypeInfo _original_rail
0,
/* rail type label */
RAILTYPE_RAIL_LABEL,
RAILTYPE_LABEL_RAIL,
/* alternate labels */
RailTypeLabelList(),
@@ -191,7 +191,7 @@ static const RailTypeInfo _original_rail
RAILTYPE_ELECTRIC_LABEL,
RAILTYPE_LABEL_ELECTRIC,
@@ -288,7 +288,7 @@ static const RailTypeInfo _original_rail
RAILTYPE_MONO_LABEL,
RAILTYPE_LABEL_MONO,
@@ -385,7 +385,7 @@ static const RailTypeInfo _original_rail
RAILTYPE_MAGLEV_LABEL,
RAILTYPE_LABEL_MAGLEV,
@@ -73,7 +73,7 @@ static const RoadTypeInfo _original_road
/* road type label */
ROADTYPE_ROAD_LABEL,
ROADTYPE_LABEL_ROAD,
RoadTypeLabelList(),
@@ -153,7 +153,7 @@ static const RoadTypeInfo _original_road
ROADTYPE_TRAM_LABEL,
ROADTYPE_LABEL_TRAM,
Status change: