mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 05:15:21 +00:00
(svn r19557) -Fix (r19502): Missed conversion to checking temporary data broke rail type setting upon changing traction type.
This commit is contained in:
parent
8c4c691448
commit
4441fee0f5
@ -658,8 +658,8 @@ static ChangeInfoResult RailVehicleChangeInfo(uint engine, int numinfo, int prop
|
|||||||
if (_cur_grffile->railtype_max == 0) {
|
if (_cur_grffile->railtype_max == 0) {
|
||||||
/* Use traction type to select between normal and electrified
|
/* Use traction type to select between normal and electrified
|
||||||
* rail only when no translation list is in place. */
|
* rail only when no translation list is in place. */
|
||||||
if (rvi->railtype == RAILTYPE_RAIL && engclass >= EC_ELECTRIC) _gted[e->index].railtypelabel = RAILTYPE_ELECTRIC_LABEL;
|
if (_gted[e->index].railtypelabel == RAILTYPE_RAIL_LABEL && engclass >= EC_ELECTRIC) _gted[e->index].railtypelabel = RAILTYPE_ELECTRIC_LABEL;
|
||||||
if (rvi->railtype == RAILTYPE_ELECTRIC && engclass < EC_ELECTRIC) _gted[e->index].railtypelabel = RAILTYPE_RAIL_LABEL;
|
if (_gted[e->index].railtypelabel == RAILTYPE_ELECTRIC_LABEL && engclass < EC_ELECTRIC) _gted[e->index].railtypelabel = RAILTYPE_RAIL_LABEL;
|
||||||
}
|
}
|
||||||
|
|
||||||
rvi->engclass = engclass;
|
rvi->engclass = engclass;
|
||||||
|
Loading…
Reference in New Issue
Block a user