summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-06 20:00:36 +0000
committerrubidium <rubidium@openttd.org>2007-05-06 20:00:36 +0000
commitfeadd868197ed53e7185630ed97f92b68f75f819 (patch)
tree205c56919542d9c2904cc9b11f1fbc98336b0899 /src
parent411985b13a96e3c7a0ea32c7a4e5e4101be1988b (diff)
downloadopenttd-feadd868197ed53e7185630ed97f92b68f75f819.tar.xz
(svn r9802) -Fix: a vehicle without visual effects isn't per definition unpowered (mart3p).
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 17d66d505..4b49136a2 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -190,7 +190,7 @@ void TrainConsistChanged(Vehicle* v)
}
if (rvi_v->pow_wag_power != 0 && rvi_u->railveh_type == RAILVEH_WAGON &&
- UsesWagonOverride(u) && (u->u.rail.cached_vis_effect < 0x40)) {
+ UsesWagonOverride(u) && !HASBIT(u->u.rail.cached_vis_effect, 7)) {
/* wagon is powered */
SETBIT(u->u.rail.flags, VRF_POWEREDWAGON); // cache 'powered' status
} else {