diff options
author | rubidium <rubidium@openttd.org> | 2008-01-09 21:05:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-01-09 21:05:03 +0000 |
commit | 998d7644f6a1b58de0b06d539c0436808b1f1e95 (patch) | |
tree | 6b9fc11a0135e1ccdb74151dd8962e4fd5264843 /src/elrail.cpp | |
parent | 82fe2885abb359c813908b0c844533bfec2c2b22 (diff) | |
download | openttd-998d7644f6a1b58de0b06d539c0436808b1f1e95.tar.xz |
(svn r11800) -Codechange: move some functions to a more logical location + some type safety.
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r-- | src/elrail.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp index 6b1197998..c074b9b02 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -496,7 +496,7 @@ int32 SettingsDisableElrail(int32 p1) if (v->type == VEH_TRAIN && v->u.rail.railtype == RAILTYPE_ELECTRIC) { /* this railroad vehicle is now compatible only with elrail, * so add there also normal rail compatibility */ - v->u.rail.compatible_railtypes |= (1 << RAILTYPE_RAIL); + v->u.rail.compatible_railtypes |= RAILTYPES_RAIL; v->u.rail.railtype = RAILTYPE_RAIL; SetBit(v->u.rail.flags, VRF_EL_ENGINE_ALLOWED_NORMAL_RAIL); } |