diff options
author | rubidium <rubidium@openttd.org> | 2007-05-06 20:00:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-06 20:00:36 +0000 |
commit | feadd868197ed53e7185630ed97f92b68f75f819 (patch) | |
tree | 205c56919542d9c2904cc9b11f1fbc98336b0899 /src | |
parent | 411985b13a96e3c7a0ea32c7a4e5e4101be1988b (diff) | |
download | openttd-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.cpp | 2 |
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 { |