--- a/src/station.h Wed Jan 17 22:19:12 2007 +0000
+++ b/src/station.h Wed Jan 17 22:32:34 2007 +0000
@@ -46,9 +46,8 @@
typedef struct RoadStop {
TileIndex xy;
- bool used;
+ RoadStopID index;
byte status;
- RoadStopID index;
byte num_vehicles;
struct RoadStop *next;
struct RoadStop *prev;
@@ -258,7 +257,7 @@
*/
static inline bool IsValidRoadStop(const RoadStop *rs)
{
- return rs->used;
+ return rs->xy != INVALID_TILE;
}
#define FOR_ALL_ROADSTOPS_FROM(rs, start) for (rs = GetRoadStop(start); rs != NULL; rs = (rs->index + 1U < GetRoadStopPoolSize()) ? GetRoadStop(rs->index + 1U) : NULL) if (IsValidRoadStop(rs))