Makes a copy of the current object to the clipboard object Returns true on success
| 87 | // Makes a copy of the current object to the clipboard object |
| 88 | // Returns true on success |
| 89 | bool 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 |