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

Method OnPathpadMoveDown

editor/PathPadDialog.cpp:349–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void CPathPadDialog::OnPathpadMoveDown() {
350 if (Num_game_paths < 1) {
351 MessageBox("There are no paths to operate on.");
352 return;
353 }
354
355 int p = D3EditState.current_path;
356 int n = D3EditState.current_node;
357
358 vector delta_movement = Viewer_object->orient.uvec * -D3EditState.node_movement_inc;
359
360 MovePathNode(p, n, &delta_movement);
361
362 World_changed = 1;
363 UpdateDialog();
364}
365
366void CPathPadDialog::OnPathpadMoveUp() {
367 if (Num_game_paths < 1) {

Callers

nothing calls this directly

Calls 1

MovePathNodeFunction · 0.85

Tested by

no test coverage detected