equal
deleted
inserted
replaced
588 { |
588 { |
589 Town *t; |
589 Town *t; |
590 uint i = 0; |
590 uint i = 0; |
591 |
591 |
592 do { |
592 do { |
|
593 if (o->xy == 0) |
|
594 continue; |
|
595 |
593 t = GetTown(i); |
596 t = GetTown(i); |
594 |
597 |
595 t->xy = o->xy; |
598 t->xy = o->xy; |
596 t->population = o->population; |
599 t->population = o->population; |
597 t->townnametype = o->townnametype; |
600 t->townnametype = o->townnametype; |
634 { |
637 { |
635 Industry *i; |
638 Industry *i; |
636 uint j = 0; |
639 uint j = 0; |
637 |
640 |
638 do { |
641 do { |
|
642 if (o->xy == 0) |
|
643 continue; |
|
644 |
639 i = GetIndustry(j); |
645 i = GetIndustry(j); |
640 |
646 |
641 i->xy = o->xy; |
647 i->xy = o->xy; |
642 i->town = REMAP_TOWN_PTR(o->town); |
648 i->town = REMAP_TOWN_PTR(o->town); |
643 i->width = o->width; |
649 i->width = o->width; |
694 { |
700 { |
695 Station *s; |
701 Station *s; |
696 uint i = 0; |
702 uint i = 0; |
697 |
703 |
698 do { |
704 do { |
|
705 if (o->xy == 0) |
|
706 continue; |
|
707 |
699 s = GetStation(i); |
708 s = GetStation(i); |
700 |
709 |
701 s->xy = o->xy; |
710 s->xy = o->xy; |
702 s->town = REMAP_TOWN_PTR(o->town); |
711 s->town = REMAP_TOWN_PTR(o->town); |
703 s->bus_tile = o->bus_tile; |
712 s->bus_tile = o->bus_tile; |
743 { |
752 { |
744 Vehicle *n; |
753 Vehicle *n; |
745 uint i = 0; |
754 uint i = 0; |
746 |
755 |
747 do { |
756 do { |
|
757 if (o->type == 0) |
|
758 continue; |
|
759 |
748 n = GetVehicle(i); |
760 n = GetVehicle(i); |
749 |
761 |
750 n->type = o->type; |
762 n->type = o->type; |
751 n->subtype = o->subtype; |
763 n->subtype = o->subtype; |
752 |
764 |