From fb8e5f61b181ca34c43d0a0e8d39ee95af2eb60a Mon Sep 17 00:00:00 2001 From: matthijs Date: Sun, 3 Jul 2005 13:02:54 +0000 Subject: (svn r2514) - Codechange: [NPF] Move the checking of railtype into a funciton IsCompatibleRail(). - Codechange: [NPF] Check the railtype along a route against the engine type instead of against the previouse tile. This clears the way for electriefied rails. - Add: [NPF] [ 1209644 ] A penalty for crossings (peter1138) --- vehicle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vehicle.c') diff --git a/vehicle.c b/vehicle.c index aadfb87a2..5e5d4de8c 100644 --- a/vehicle.c +++ b/vehicle.c @@ -368,9 +368,9 @@ Vehicle *GetLastVehicleInChain(Vehicle *v) static Vehicle *GetPrevVehicleInChain_bruteforce(const Vehicle *v) { Vehicle *u; - + FOR_ALL_VEHICLES(u) if (u->type == VEH_Train && u->next == v) return u; - + return NULL; } -- cgit v1.2.3-54-g00ecf