summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-08 15:29:23 +0000
committertron <tron@openttd.org>2006-03-08 15:29:23 +0000
commit463cf2ec6bc487aaf3c1ca6a5ea4bcca56194254 (patch)
tree6a9a867d57cdc9d1a608088bf29d0b1186ef6934 /road_cmd.c
parent7bce62899c796cc114224c159249c7b302d2deae (diff)
downloadopenttd-463cf2ec6bc487aaf3c1ca6a5ea4bcca56194254.tar.xz
(svn r3795) Add a function to request the orientation of a depot
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/road_cmd.c b/road_cmd.c
index a4480b669..ca558e29c 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -803,7 +803,7 @@ static void DrawTile_Road(TileInfo *ti)
player = GetTileOwner(ti->tile);
if (player < MAX_PLAYERS) ormod = PLAYER_SPRITE_COLOR(player);
- drss = _road_display_datas[ti->map5 & 0xF];
+ drss = _road_display_datas[GetRoadDepotDirection(ti->tile)];
DrawGroundSprite(drss++->image);
@@ -1100,7 +1100,7 @@ static uint32 VehicleEnter_Road(Vehicle *v, TileIndex tile, int x, int y)
case ROAD_DEPOT:
if (v->type == VEH_Road && v->u.road.frame == 11) {
- if (_roadveh_enter_depot_unk0[GB(_m[tile].m5, 0, 2)] == v->u.road.state) {
+ if (_roadveh_enter_depot_unk0[GetRoadDepotDirection(tile)] == v->u.road.state) {
RoadVehEnterDepot(v);
return 4;
}