summaryrefslogtreecommitdiff
path: root/src/station.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2007-02-13 16:36:38 +0000
committercelestar <celestar@openttd.org>2007-02-13 16:36:38 +0000
commitd9385f27986a59fa6b4a557e9bd6a04dc80752d8 (patch)
tree95900e955779b893062a6fbfbae3fa7fcf8323d1 /src/station.h
parent5e880a6a75d5fb3e9d9b90d30ebd720c9dce2a6e (diff)
downloadopenttd-d9385f27986a59fa6b4a557e9bd6a04dc80752d8.tar.xz
(svn r8709) -Fix/Codechange: Rename the function GetStationPlatforms into GetPlatformLength because that is what it really does. Overload it because there is already a GetPlatformLength (one gives the length of the whole platform, the other gives the remaining length in a given direction). Turned both functions into methods of Station. While messing around with it, fix a problem where loading times for overhanging trains are miscomputed.
Diffstat (limited to 'src/station.h')
-rw-r--r--src/station.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station.h b/src/station.h
index 38fcf058f..6d5113b2f 100644
--- a/src/station.h
+++ b/src/station.h
@@ -167,6 +167,8 @@ struct Station {
void MarkDirty() const;
void MarkTilesDirty() const;
bool TileBelongsToRailStation(TileIndex tile) const;
+ uint GetPlatformLength(TileIndex tile, DiagDirection dir) const;
+ uint GetPlatformLength(TileIndex tile) const;
bool IsBuoy() const;
bool IsValid() const;
@@ -260,8 +262,6 @@ DECLARE_OLD_POOL(RoadStop, RoadStop, 5, 2000)
void AfterLoadStations(void);
void GetProductionAroundTiles(AcceptedCargo produced, TileIndex tile, int w, int h, int rad);
void GetAcceptanceAroundTiles(AcceptedCargo accepts, TileIndex tile, int w, int h, int rad);
-uint GetStationPlatforms(const Station *st, TileIndex tile);
-uint GetPlatformLength(TileIndex tile, DiagDirection dir);
const DrawTileSprites *GetStationTileLayout(byte gfx);