diff options
author | tron <tron@openttd.org> | 2006-04-14 10:48:54 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-04-14 10:48:54 +0000 |
commit | a3b8eb37b8612a9e179aeb44198f81bbbe89b6ab (patch) | |
tree | 55fca54b1e92358d4228e6b117d818cc051ed800 | |
parent | c09109cc67f2a1cbe311b1fff6367d171442476a (diff) | |
download | openttd-a3b8eb37b8612a9e179aeb44198f81bbbe89b6ab.tar.xz |
(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
-rw-r--r-- | train_cmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/train_cmd.c b/train_cmd.c index 633167415..05cd05aa4 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; } |