From 29123cf2756b7325f48376501bec5c33d0e8c8ca Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 24 May 2007 08:52:28 +0000 Subject: (svn r9908) -Codechange: prepare the station picker for more road types. --- src/station_cmd.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/station_cmd.cpp') diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 79805859a..404fca9ad 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1253,6 +1253,9 @@ int32 CmdBuildRoadStop(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) if (rts == ROADTYPES_NONE || HASBIT(rts, ROADTYPE_HWAY)) return CMD_ERROR; + /* Trams only have drive through stops */ + if (!is_drive_through && HASBIT(rts, ROADTYPE_TRAM)) return CMD_ERROR; + /* Saveguard the parameters */ if (!IsValidDiagDirection((DiagDirection)p1)) return CMD_ERROR; /* If it is a drive-through stop check for valid axis */ @@ -2076,7 +2079,7 @@ static void DrawTile_Station(TileInfo *ti) } } -void StationPickerDrawSprite(int x, int y, RailType railtype, int image) +void StationPickerDrawSprite(int x, int y, RailType railtype, RoadType roadtype, int image) { const RailtypeInfo *rti = GetRailTypeInfo(railtype); SpriteID pal = PLAYER_SPRITE_COLOR(_local_player); -- cgit v1.2.3-54-g00ecf