# HG changeset patch # User tron # Date 2006-04-14 10:48:54 # Node ID 4498f86a880cf6a3b3154fe64e54277bb5cc6fc3 # Parent 523dd56b3018faabf0bb8a31216df3812f1109eb (svn r4412) When a vehicle is in a depot or tunnel it's always flagged as VS_HIDDEN. So after checking for VS_HIDDEN and the result is false there's no need to check if it's flagged as being in a depot or tunnel diff --git a/train_cmd.c b/train_cmd.c --- a/train_cmd.c +++ b/train_cmd.c @@ -1950,8 +1950,7 @@ static void HandleLocomotiveSmokeCloud(c if ((RailVehInfo(engtype)->flags & RVI_WAGON && effect_type == 0) || disable_effect || GetEngine(engtype)->railtype > RAILTYPE_ELECTRIC || - v->vehstatus & VS_HIDDEN || - v->u.rail.track & 0xC0) { + v->vehstatus & VS_HIDDEN) { continue; }