| 863 | } |
| 864 | |
| 865 | void PageDataList::AddDoorPage(int id, int process_type) { |
| 866 | CWaitCursor wc; |
| 867 | // Set sounds |
| 868 | door *doorpointer = &Doors[id]; |
| 869 | |
| 870 | ProcessPage(Doors[id].name, PAGETYPE_DOOR, process_type); |
| 871 | wc.Restore(); |
| 872 | |
| 873 | PageInPolymodel(doorpointer->model_handle); |
| 874 | poly_model *pm = &Poly_models[doorpointer->model_handle]; |
| 875 | for (int t = 0; t < pm->n_textures; t++) |
| 876 | AddTexturePage(pm->textures[t], process_type); |
| 877 | |
| 878 | if (doorpointer->open_sound != -1 && doorpointer->open_sound != SOUND_NONE_INDEX) |
| 879 | AddSoundPage(doorpointer->open_sound, process_type); |
| 880 | if (doorpointer->close_sound != -1 && doorpointer->close_sound != SOUND_NONE_INDEX) |
| 881 | AddSoundPage(doorpointer->close_sound, process_type); |
| 882 | } |
| 883 | |
| 884 | void PageDataList::AddWeaponPage(int id, int process_type) { |
| 885 | CWaitCursor wc; |
nothing calls this directly
no test coverage detected