From 19fa38601d8df49c309052e8bccb8c2e4302b51e Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 4 Dec 2009 20:29:46 +0000 Subject: (svn r18402) -Codechange: unify/centralise the code for crashing vehicles --- src/train.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/train.h') diff --git a/src/train.h b/src/train.h index 9705c3123..f4f8d741b 100644 --- a/src/train.h +++ b/src/train.h @@ -136,6 +136,7 @@ struct Train : public SpecializedVehicle { bool IsStoppedInDepot() const { return CheckTrainStoppedInDepot(this) >= 0; } bool Tick(); void OnNewDay(); + uint Crash(bool flooded = false); Trackdir GetVehicleTrackdir() const; TileIndex GetOrderStationLocation(StationID station); bool FindClosestDepot(TileIndex *location, DestinationID *destination, bool *reverse); -- cgit v1.2.3-54-g00ecf