diff options
author | rubidium <rubidium@openttd.org> | 2007-05-24 08:52:28 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-24 08:52:28 +0000 |
commit | 29123cf2756b7325f48376501bec5c33d0e8c8ca (patch) | |
tree | cc7580e4422273bf8d7dd165fb39cba3e40d754d /src/station_cmd.cpp | |
parent | d647bc79871d7920e3f507dd74ea44ec92d7b43f (diff) | |
download | openttd-29123cf2756b7325f48376501bec5c33d0e8c8ca.tar.xz |
(svn r9908) -Codechange: prepare the station picker for more road types.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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); |