| 762 | } |
| 763 | |
| 764 | void CWorldSoundsDialog::SaveSoundsOnClose() { |
| 765 | int i, t; |
| 766 | |
| 767 | if (!Network_up) |
| 768 | return; // don't save a damn thing if the network is down |
| 769 | |
| 770 | for (i = 0; i < MAX_TRACKLOCKS; i++) { |
| 771 | if (GlobalTrackLocks[i].used == 1 && GlobalTrackLocks[i].pagetype == PAGETYPE_SOUND) { |
| 772 | t = FindSoundName(GlobalTrackLocks[i].name); |
| 773 | ASSERT(t != -1); |
| 774 | |
| 775 | mng_ReplacePage(Sounds[t].name, Sounds[t].name, t, PAGETYPE_SOUND, 1); |
| 776 | } |
| 777 | } |
| 778 | } |
| 779 | |
| 780 | BOOL CWorldSoundsDialog::DestroyWindow() { |
| 781 | SaveSoundsOnClose(); |
nothing calls this directly
no test coverage detected