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

Method OnPathpadMoveForward

editor/PathPadDialog.cpp:227–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void CPathPadDialog::OnPathpadMoveForward() {
228 if (Num_game_paths < 1) {
229 MessageBox("There are no paths to operate on.");
230 return;
231 }
232
233 int p = D3EditState.current_path;
234 int n = D3EditState.current_node;
235
236 vector delta_movement = Viewer_object->orient.fvec * D3EditState.node_movement_inc;
237
238 MovePathNode(p, n, &delta_movement);
239
240 World_changed = 1;
241 UpdateDialog();
242}
243
244void CPathPadDialog::OnPathpadMoveBackward() {
245 if (Num_game_paths < 1) {

Callers

nothing calls this directly

Calls 1

MovePathNodeFunction · 0.85

Tested by

no test coverage detected