(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
authortron
Fri, 14 Apr 2006 10:48:54 +0000
changeset 3546 1cb79c89c9a9
parent 3545 3e66bf329257
child 3547 a4584d709460
(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
--- a/train_cmd.c	Fri Apr 14 01:54:07 2006 +0000
+++ b/train_cmd.c	Fri Apr 14 10:48:54 2006 +0000
@@ -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;
 		}