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

Method OnDeletePath

editor/PathPadDialog.cpp:454–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454void CPathPadDialog::OnDeletePath() {
455 int ret;
456 int n = D3EditState.current_path;
457
458 if (Num_game_paths < 1)
459 return;
460
461 ret = MessageBox("Are you sure you want to delete this path?", GamePaths[n].name, MB_YESNO);
462 if (ret == IDNO)
463 return;
464
465 FreeGamePath(n);
466
467 D3EditState.current_path = GetNextPath(n);
468 World_changed = 1;
469 UpdateDialog();
470}
471
472void CPathPadDialog::OnShowNodesCheck() {
473 int c = IsDlgButtonChecked(IDC_SHOW_NODES_CHECK);

Callers

nothing calls this directly

Calls 2

FreeGamePathFunction · 0.85
GetNextPathFunction · 0.85

Tested by

no test coverage detected