From 060d5143ef4935214a852f7a7fdaed2c7631751c Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 14 Apr 2006 10:48:54 +0000 Subject: [PATCH] (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 --- train_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/train_cmd.c b/train_cmd.c index 6331674157..05cd05aa42 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -1950,8 +1950,7 @@ static void HandleLocomotiveSmokeCloud(const Vehicle* v) 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; }