changeset 3546:509a7fa9f988 draft

(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
author tron <tron@openttd.org>
date Fri, 14 Apr 2006 10:48:54 +0000
parents 77f9332e542b
children 8d947a150298
files train_cmd.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -1950,8 +1950,7 @@
 		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;
 		}