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

Method AddObjectType

roomedit/source/editcli.cpp:4902–4914  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////// TEditorClient ------------- Small function to add the object type name (depending on the edit mode and number of selected objects) to a string This function is used with StartUndoRecording() to get a significant string corresponding to the UNDO/REDO function

Source from the content-addressed store, hash-verified

4900// a significant string corresponding to the UNDO/REDO function
4901//
4902const char *TEditorClient::AddObjectType(const char *str)
4903{
4904 static char msg[50];
4905
4906 strcpy (msg, str);
4907 strcat (msg, " ");
4908 if ( Selected != NULL && Selected->next != NULL )
4909 strcat (msg, GetObjectsTypeName(EditMode));
4910 else
4911 strcat (msg, GetObjectTypeName(EditMode));
4912
4913 return (msg);
4914}
4915
4916
4917/////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 2

GetObjectsTypeNameFunction · 0.85
GetObjectTypeNameFunction · 0.85

Tested by

no test coverage detected