MCPcopy Create free account
hub / github.com/Meridian59/Meridian59 / UnSelectObject

Function UnSelectObject

roomedit/source/objects.cpp:103–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101*/
102
103void UnSelectObject (SelPtr *list, SHORT objnum)
104{
105 // XXX Assertion kept going off for some reason; hopefully this is ok ARK
106 if (objnum < 0)
107 return;
108// assert (objnum >= 0);
109
110 SelPtr cur, prev;
111 prev = NULL;
112 cur = *list;
113 while (cur)
114 {
115 if (cur->objnum == objnum)
116 {
117 if (prev)
118 prev->next = cur->next;
119 else
120 *list = cur->next;
121 FreeMemory (cur);
122 if (prev)
123 cur = prev->next;
124 else
125 cur = NULL;
126 }
127 else
128 {
129 prev = cur;
130 cur = cur->next;
131 }
132 }
133}
134
135
136

Callers 15

SelectObjectsInBoxFunction · 0.85
DeleteObjectsFunction · 0.85
MergeVerticesFunction · 0.85
AutoMergeVerticesFunction · 0.85
SplitSectorFunction · 0.85
MergeSectorsFunction · 0.85
MakeDoorFromSectorFunction · 0.85
MakeLiftFromSectorFunction · 0.85
AlignTexturesYFunction · 0.85
AlignTexturesXFunction · 0.85
CheckCrossReferencesFunction · 0.85
SetupSelectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected