diff options
author | matthijs <matthijs@openttd.org> | 2005-07-03 13:02:54 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2005-07-03 13:02:54 +0000 |
commit | fb8e5f61b181ca34c43d0a0e8d39ee95af2eb60a (patch) | |
tree | 6d371024326a8ed726a5b94394047c888bd1a2c8 /vehicle.c | |
parent | 6df35235d5b610262af8777cf2047245d271e5c9 (diff) | |
download | openttd-fb8e5f61b181ca34c43d0a0e8d39ee95af2eb60a.tar.xz |
(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)
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |