718 |
718 |
719 s = GetStation(i); |
719 s = GetStation(i); |
720 |
720 |
721 s->xy = o->xy; |
721 s->xy = o->xy; |
722 s->town = REMAP_TOWN_PTR(o->town); |
722 s->town = REMAP_TOWN_PTR(o->town); |
|
723 |
|
724 s->bus_stops = NULL; |
|
725 s->truck_stops = NULL; |
|
726 |
723 if (o->bus_tile != 0) { |
727 if (o->bus_tile != 0) { |
724 s->bus_stops = GetFirstFreeRoadStop(); |
728 s->bus_stops = AllocateRoadStop(); |
725 s->bus_stops->xy = o->bus_tile; |
729 s->bus_stops->xy = o->bus_tile; |
726 } else |
730 s->bus_stops->used = true; |
727 s->bus_stops = NULL; |
731 s->bus_stops->status = 3; |
|
732 s->bus_stops->station = s->index; |
|
733 s->bus_stops->next = NULL; |
|
734 s->bus_stops->prev = NULL; |
|
735 s->bus_stops->slot[0] = s->bus_stops->slot[1] = INVALID_SLOT; |
|
736 } |
|
737 |
728 if (o->lorry_tile != 0) { |
738 if (o->lorry_tile != 0) { |
729 s->truck_stops = GetFirstFreeRoadStop(); |
739 s->truck_stops = AllocateRoadStop(); |
730 s->truck_stops->xy = o->lorry_tile; |
740 s->truck_stops->xy = o->lorry_tile; |
731 } else |
741 s->truck_stops->used = true; |
732 s->truck_stops = 0; |
742 s->truck_stops->status = 3; |
|
743 s->truck_stops->station = s->index; |
|
744 s->truck_stops->next = NULL; |
|
745 s->truck_stops->prev = NULL; |
|
746 s->truck_stops->slot[0] = s->truck_stops->slot[1] = INVALID_SLOT; |
|
747 } |
|
748 |
733 s->train_tile = o->train_tile; |
749 s->train_tile = o->train_tile; |
734 s->airport_tile = o->airport_tile; |
750 s->airport_tile = o->airport_tile; |
735 s->dock_tile = o->dock_tile; |
751 s->dock_tile = o->dock_tile; |
736 |
752 |
737 if (o->train_tile) { |
753 if (o->train_tile) { |