Fix 37adf9be: Fix last effect flag not being checked if front has no effect

This commit is contained in:
Jonathan G Rennison
2020-02-26 23:05:57 +00:00
parent 65152503de
commit de2c2f7cea

View File

@@ -3587,6 +3587,7 @@ void Vehicle::ShowVisualEffect() const
IsTunnelTile(v->tile) ||
(v->type == VEH_TRAIN &&
!HasPowerOnRail(Train::From(v)->railtype, GetTileRailTypeByTrackBit(v->tile, Train::From(v)->track)))) {
if (HasBit(v->vcache.cached_veh_flags, VCF_LAST_VISUAL_EFFECT)) break;
continue;
}