changeset 1132 | 7378651941bf |
parent 1128 | d3ffc98b92ad |
child 1137 | c492b777af49 |
--- a/train_cmd.c Sun Jan 23 23:59:49 2005 +0000 +++ b/train_cmd.c Mon Jan 24 00:36:22 2005 +0000 @@ -2630,6 +2630,10 @@ // 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); } }