From 5481dcd191a1b763330345d11264de6eac91a106 Mon Sep 17 00:00:00 2001 From: bjarni Date: Mon, 7 Nov 2005 23:20:47 +0000 Subject: (svn r3155) -Feature: [autoreplace] autoreplace can now remove cars from too long trains -Trains will now remember the length of stations it visits and sell cars when being autoreplaced if they became too long -If it needs to remove cars, then it starts from the front and sells all it can find until the train is short enough -This only works for trains, that knows the station length of the route so a full uninterrupted run is needed -a train needs 1-2 runs to detect if the shortest station is expanded -This feature can be turned on and off in the train replace window and each company can have it's own setting -NOTE: minor savegame version bump --- station_cmd.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'station_cmd.c') diff --git a/station_cmd.c b/station_cmd.c index 1a5e81bda..ec643fcf7 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -1083,11 +1083,6 @@ int32 CmdBuildRailroadStation(int x, int y, uint32 flags, uint32 p1, uint32 p2) return cost; } -static bool TileBelongsToRailStation(const Station *st, TileIndex tile) -{ - return IsTileType(tile, MP_STATION) && _m[tile].m2 == st->index && _m[tile].m5 < 8; -} - static void MakeRailwayStationAreaSmaller(Station *st) { uint w = st->trainst_w; -- cgit v1.2.3-54-g00ecf