MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / AddDoorPage

Method AddDoorPage

editor/TableFileFilterMng.cpp:865–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863}
864
865void 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
884void PageDataList::AddWeaponPage(int id, int process_type) {
885 CWaitCursor wc;

Callers

nothing calls this directly

Calls 1

PageInPolymodelFunction · 0.85

Tested by

no test coverage detected