diff options
author | rubidium <rubidium@openttd.org> | 2009-05-22 22:33:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-22 22:33:05 +0000 |
commit | c4b627af422075ce4a0e1026c52f871dd3f146c0 (patch) | |
tree | febaea249dc307b4b619aeff09e353677bbbcd84 /src/elrail.cpp | |
parent | 80e94b9bb15f846189e98f1f457afe2b96ba2b58 (diff) | |
download | openttd-c4b627af422075ce4a0e1026c52f871dd3f146c0.tar.xz |
(svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r-- | src/elrail.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp index 78ee3c8a8..68b4a0e1d 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -558,12 +558,12 @@ bool SettingsDisableElrail(int32 p1) if (v->type != VEH_TRAIN) continue; Train *t = (Train *)v; - if (t->u.rail.railtype == RAILTYPE_ELECTRIC) { + if (t->railtype == RAILTYPE_ELECTRIC) { /* this railroad vehicle is now compatible only with elrail, * so add there also normal rail compatibility */ - t->u.rail.compatible_railtypes |= RAILTYPES_RAIL; - t->u.rail.railtype = RAILTYPE_RAIL; - SetBit(t->u.rail.flags, VRF_EL_ENGINE_ALLOWED_NORMAL_RAIL); + t->compatible_railtypes |= RAILTYPES_RAIL; + t->railtype = RAILTYPE_RAIL; + SetBit(t->flags, VRF_EL_ENGINE_ALLOWED_NORMAL_RAIL); } } } |