When closing, save all our checked out ships locally so we know what stuff to flag as "checked out" the next time we start up
| 644 | // When closing, save all our checked out ships locally so we know |
| 645 | // what stuff to flag as "checked out" the next time we start up |
| 646 | void CWorldObjectsPlayerDialog::SaveShipsOnClose() { |
| 647 | int i, t; |
| 648 | |
| 649 | if (!Network_up) |
| 650 | return; // don't save a damn thing if the network is down |
| 651 | |
| 652 | for (i = 0; i < MAX_TRACKLOCKS; i++) { |
| 653 | if (GlobalTrackLocks[i].used == 1 && GlobalTrackLocks[i].pagetype == PAGETYPE_SHIP) { |
| 654 | t = FindShipName(GlobalTrackLocks[i].name); |
| 655 | ASSERT(t != -1); |
| 656 | |
| 657 | mng_ReplacePage(Ships[t].name, Ships[t].name, t, PAGETYPE_SHIP, 1); |
| 658 | } |
| 659 | } |
| 660 | } |
| 661 | |
| 662 | BOOL CWorldObjectsPlayerDialog::DestroyWindow() { |
| 663 |
nothing calls this directly
no test coverage detected