equal
deleted
inserted
replaced
83 |
83 |
84 public: |
84 public: |
85 void SetDestination(Vehicle* v) |
85 void SetDestination(Vehicle* v) |
86 { |
86 { |
87 if (v->current_order.type == OT_GOTO_STATION) { |
87 if (v->current_order.type == OT_GOTO_STATION) { |
88 m_destTile = CalcStationCenterTile(v->current_order.dest.station); |
88 m_destTile = CalcStationCenterTile(v->current_order.dest); |
89 m_dest_station_id = v->current_order.dest.station; |
89 m_dest_station_id = v->current_order.dest; |
90 m_destTrackdirs = INVALID_TRACKDIR_BIT; |
90 m_destTrackdirs = INVALID_TRACKDIR_BIT; |
91 } else { |
91 } else { |
92 m_destTile = v->dest_tile; |
92 m_destTile = v->dest_tile; |
93 m_dest_station_id = INVALID_STATION; |
93 m_dest_station_id = INVALID_STATION; |
94 m_destTrackdirs = (TrackdirBits)(GetTileTrackStatus(v->dest_tile, TRANSPORT_RAIL) & TRACKDIR_BIT_MASK); |
94 m_destTrackdirs = (TrackdirBits)(GetTileTrackStatus(v->dest_tile, TRANSPORT_RAIL) & TRACKDIR_BIT_MASK); |