| 512 | } |
| 513 | |
| 514 | void CPathPadDialog::OnPathReorientViewerButton() { |
| 515 | if (Num_game_paths < 1) { |
| 516 | MessageBox("There are no paths to operate on."); |
| 517 | return; |
| 518 | } |
| 519 | |
| 520 | int p = D3EditState.current_path; |
| 521 | int n = D3EditState.current_node; |
| 522 | |
| 523 | game_path *gp = &GamePaths[p]; |
| 524 | |
| 525 | matrix node_orient; |
| 526 | |
| 527 | vm_VectorToMatrix(&node_orient, &gp->pathnodes[n].fvec, &gp->pathnodes[n].uvec, NULL); |
| 528 | ObjSetOrient(Viewer_object, &node_orient); |
| 529 | |
| 530 | World_changed = 1; |
| 531 | UpdateDialog(); |
| 532 | } |
| 533 | |
| 534 | void CPathPadDialog::OnKillfocusPathIncText() { |
| 535 | CEdit *ebox; |
nothing calls this directly
no test coverage detected