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

Function ObjectCopy

editor/ObjectClipboard.cpp:89–101  ·  view source on GitHub ↗

Makes a copy of the current object to the clipboard object Returns true on success

Source from the content-addressed store, hash-verified

87// Makes a copy of the current object to the clipboard object
88// Returns true on success
89bool ObjectCopy() {
90 mprintf(0, "ObjectCopy()\n");
91 if (Cur_object_index != -1) {
92 int objnum = Cur_object_index;
93 mprintf(0, "Attempting to copy object #%d into buffer...", objnum);
94 memcpy(&ClipBoardObject, &Objects[objnum], sizeof(object));
95 mprintf(0, "Done!\n");
96 ObjectInBuffer = true;
97 return true;
98 }
99
100 return false;
101}
102
103// Just deletes the current object
104// Returns true on success

Callers 1

OnCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected