equal
deleted
inserted
replaced
84 } |
84 } |
85 } |
85 } |
86 |
86 |
87 static void InitializeRoadStop(RoadStop *road_stop, RoadStop *previous, TileIndex tile, StationID index) |
87 static void InitializeRoadStop(RoadStop *road_stop, RoadStop *previous, TileIndex tile, StationID index) |
88 { |
88 { |
|
89 int i; |
89 road_stop->xy = tile; |
90 road_stop->xy = tile; |
90 road_stop->used = true; |
91 road_stop->used = true; |
91 road_stop->status = 3; //stop is free |
92 road_stop->status = 3; //stop is free |
92 road_stop->slot[0] = road_stop->slot[1] = INVALID_VEHICLE; |
|
93 road_stop->next = NULL; |
93 road_stop->next = NULL; |
94 road_stop->prev = previous; |
94 road_stop->prev = previous; |
95 road_stop->station = index; |
95 road_stop->station = index; |
|
96 |
|
97 for (i = 0; i < NUM_SLOTS; i++) road_stop->slot[i] = INVALID_VEHICLE; |
96 } |
98 } |
97 |
99 |
98 RoadStop* GetPrimaryRoadStop(const Station* st, RoadStopType type) |
100 RoadStop* GetPrimaryRoadStop(const Station* st, RoadStopType type) |
99 { |
101 { |
100 switch (type) { |
102 switch (type) { |