(svn r16947) -Codechange: use TileArea instead of train_tile, trainst_w and trainst_h.
This commit is contained in:
@@ -4564,7 +4564,7 @@ void Train::OnNewDay()
|
||||
|
||||
/* update destination */
|
||||
if (this->current_order.IsType(OT_GOTO_STATION)) {
|
||||
TileIndex tile = Station::Get(this->current_order.GetDestination())->train_tile;
|
||||
TileIndex tile = Station::Get(this->current_order.GetDestination())->train_station.tile;
|
||||
if (tile != INVALID_TILE) this->dest_tile = tile;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user