summaryrefslogtreecommitdiff
path: root/station.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-03 14:25:32 +0000
committercelestar <celestar@openttd.org>2006-04-03 14:25:32 +0000
commit8cbe98a3fdb0e8d4a6743c00712cedfa33979a0d (patch)
tree93820da9b941ae74b1d1ae37cd47bc46b37c3434 /station.h
parent369ad5a573cfe7d4ccb130981517dd6ef3d3e9c7 (diff)
downloadopenttd-8cbe98a3fdb0e8d4a6743c00712cedfa33979a0d.tar.xz
(svn r4259) -[multistop] Fix/Feature/Codechange:
1) Improved the road vehicle allocation (aka slotting) for multistop. Stops can now accept unlimited, er... 256, vehicles. 2) Removed the "wait for stop" feature, because it did not work in practise. 3) Slotting now ignores unreachable stations. Uses NPF at the moment because the old pathfinder cannot do it (yet) 4) Now matter how many vehicles approach a station, they will always be distributed evenly over existing stops. 5) Hopefully the last fundamental change to multistop
Diffstat (limited to 'station.h')
-rw-r--r--station.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/station.h b/station.h
index ad458076a..02556c89f 100644
--- a/station.h
+++ b/station.h
@@ -28,7 +28,6 @@ typedef enum RoadStopType {
enum {
INVALID_STATION = 0xFFFF,
- NUM_SLOTS = 2,
ROAD_STOP_LIMIT = 16,
};
@@ -37,7 +36,7 @@ typedef struct RoadStop {
bool used;
byte status;
uint32 index;
- VehicleID slot[NUM_SLOTS];
+ byte num_vehicles;
StationID station;
uint8 type;
struct RoadStop *next;