| 554 | } |
| 555 | |
| 556 | void CPathPadDialog::OnPathMoveNodeToCurrentObject() { |
| 557 | if (Num_game_paths < 1) { |
| 558 | MessageBox("There are no paths to operate on."); |
| 559 | return; |
| 560 | } |
| 561 | |
| 562 | if (Cur_object_index != -1) // we have a selected object |
| 563 | { |
| 564 | |
| 565 | int p = D3EditState.current_path; |
| 566 | int n = D3EditState.current_node; |
| 567 | |
| 568 | game_path *gp = &GamePaths[p]; |
| 569 | MovePathNodeToPos(p, n, &Objects[Cur_object_index].pos); |
| 570 | |
| 571 | World_changed = 1; |
| 572 | UpdateDialog(); |
| 573 | } |
| 574 | } |
| 575 | |
| 576 | void CPathPadDialog::OnPathMoveObjNoOrient() { |
| 577 | if (Num_game_paths < 1) { |
nothing calls this directly
no test coverage detected