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

Method OnPathMoveNodeToCurrentObject

editor/PathPadDialog.cpp:556–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556void 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
576void CPathPadDialog::OnPathMoveObjNoOrient() {
577 if (Num_game_paths < 1) {

Callers

nothing calls this directly

Calls 1

MovePathNodeToPosFunction · 0.85

Tested by

no test coverage detected