| 650 | }; |
| 651 | |
| 652 | static bool LoadOldOrder(LoadgameState &ls, int num) |
| 653 | { |
| 654 | if (!LoadChunk(ls, nullptr, order_chunk)) return false; |
| 655 | |
| 656 | OldOrderSaveLoadItem &o = AllocateOldOrder(num); |
| 657 | o.order.AssignOrder(UnpackOldOrder(_old_order)); |
| 658 | |
| 659 | if (!o.order.IsType(OT_NOTHING) && num > 0) { |
| 660 | /* Relink the orders to each other (in the orders for one vehicle are behind each other, |
| 661 | * with an invalid order (OT_NOTHING) as indication that it is the last order */ |
| 662 | OldOrderSaveLoadItem *prev = GetOldOrder(num + 1 - 1); |
| 663 | if (prev != nullptr) prev->next = num + 1; // next is 1-based. |
| 664 | } |
| 665 | |
| 666 | return true; |
| 667 | } |
| 668 | |
| 669 | static bool LoadOldAnimTileList(LoadgameState &ls, int) |
| 670 | { |
nothing calls this directly
no test coverage detected