| 452 | } |
| 453 | |
| 454 | void 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 | |
| 472 | void CPathPadDialog::OnShowNodesCheck() { |
| 473 | int c = IsDlgButtonChecked(IDC_SHOW_NODES_CHECK); |
nothing calls this directly
no test coverage detected