(svn r16940) -Codechange: make the pathfinders behave the same when finding waypoints or stations, i.e. don't force exactly one destination tile for a waypoint

This commit is contained in:
rubidium
2009-07-24 15:18:25 +00:00
parent cf38a5bee6
commit c3d2c47faa
10 changed files with 50 additions and 44 deletions

View File

@@ -24,6 +24,16 @@ struct Waypoint : SpecializedStation<Waypoint, true> {
/* virtual */ uint32 GetNewGRFVariable(const struct ResolverObject *object, byte variable, byte parameter, bool *available) const;
/* virtual */ void GetTileArea(TileArea *ta, StationType type) const;
/* virtual */ uint GetPlatformLength(TileIndex tile, DiagDirection dir) const
{
return 1;
}
/* virtual */ uint GetPlatformLength(TileIndex tile) const
{
return 1;
}
};
#define FOR_ALL_WAYPOINTS(var) FOR_ALL_BASE_STATIONS_OF_TYPE(Waypoint, var)