diff options
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/train_cmd.c b/train_cmd.c index c871764d1..81f85e9ae 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -2630,6 +2630,10 @@ void Train_Tick(Vehicle *v) // make sure vehicle wasn't deleted. if (v->type == VEH_Train && v->subtype == TS_Front_Engine) TrainLocoHandler(v, true); + } else if (v->subtype == TS_Free_Car && HASBITS(v->vehstatus, VS_CRASHED)) { + // Delete flooded standalone wagon + if (++v->u.rail.crash_anim_pos >= 4400) + DeleteVehicle(v); } } |