mirror of https://github.com/OpenTTD/OpenTTD
(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
parent
e84d878213
commit
060d5143ef
|
@ -1950,8 +1950,7 @@ static void HandleLocomotiveSmokeCloud(const Vehicle* v)
|
||||||
if ((RailVehInfo(engtype)->flags & RVI_WAGON && effect_type == 0) ||
|
if ((RailVehInfo(engtype)->flags & RVI_WAGON && effect_type == 0) ||
|
||||||
disable_effect ||
|
disable_effect ||
|
||||||
GetEngine(engtype)->railtype > RAILTYPE_ELECTRIC ||
|
GetEngine(engtype)->railtype > RAILTYPE_ELECTRIC ||
|
||||||
v->vehstatus & VS_HIDDEN ||
|
v->vehstatus & VS_HIDDEN) {
|
||||||
v->u.rail.track & 0xC0) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue