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

Method CmMiscLDDelete

roomedit/source/editcli.cpp:3476–3506  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////// TEditorClient -------------

Source from the content-addressed store, hash-verified

3474// -------------
3475//
3476void TEditorClient::CmMiscLDDelete ()
3477{
3478 // Ignore if "insert object" mode
3479 if ( InsertingObject )
3480 return;
3481
3482 SET_HELP_CONTEXT(Delete_LineDefs_and_join_Sectors);
3483
3484 // Check at least one object selected
3485 if ( CheckSelection (1, -1) == FALSE )
3486 return;
3487
3488 // UNDO
3489 StartUndoRecording("Delete LineDef");
3490
3491 // Delete LineDefs and join sectors
3492 DeleteLineDefsJoinSectors (&Selected);
3493
3494 // UNDO
3495 StopUndoRecording();
3496
3497 // SELECTION MAY BE NOT VALID
3498 // Forget selection to prevent invalid object numbers
3499 ForgetSelection (&Selected);
3500 CurObject = -1;
3501
3502 // Redraw map, info windows and status bar
3503 RefreshWindows();
3504
3505 RESTORE_HELP_CONTEXT();
3506}
3507
3508/////////////////////////////////////////////////////////////////////
3509// TEditorClient

Callers

nothing calls this directly

Calls 4

StartUndoRecordingFunction · 0.85
StopUndoRecordingFunction · 0.85
ForgetSelectionFunction · 0.85

Tested by

no test coverage detected