diff options
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 { |