summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-04-17 19:43:04 +0000
committermichi_cc <michi_cc@openttd.org>2012-04-17 19:43:04 +0000
commitbb8506032e1f3e7122b6bd86103b0f40cf65a384 (patch)
treeab6b2d789b3cec6e577c4c52e3cc8b1503dd3a73 /src/vehicle.cpp
parentd3c6130f3f8f720280d017b53c011b22c2683fe6 (diff)
downloadopenttd-bb8506032e1f3e7122b6bd86103b0f40cf65a384.tar.xz
(svn r24124) -Add [FS#4658]: [NewGRF] Misc engine flag to disable breakdown smoke. (Hirundo)
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 4851a4529..5f87b571e 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1146,7 +1146,7 @@ bool Vehicle::HandleBreakdown()
(this->type == VEH_TRAIN ? SND_3A_COMEDY_BREAKDOWN_2 : SND_35_COMEDY_BREAKDOWN), this);
}
- if (!(this->vehstatus & VS_HIDDEN)) {
+ if (!(this->vehstatus & VS_HIDDEN) && !HasBit(EngInfo(this->engine_type)->misc_flags, EF_NO_BREAKDOWN_SMOKE)) {
EffectVehicle *u = CreateEffectVehicleRel(this, 4, 4, 5, EV_BREAKDOWN_SMOKE);
if (u != NULL) u->animation_state = this->breakdown_delay * 2;
}