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

Method OnPathpadMoveLeft

editor/PathPadDialog.cpp:261–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void CPathPadDialog::OnPathpadMoveLeft() {
262 if (Num_game_paths < 1) {
263 MessageBox("There are no paths to operate on.");
264 return;
265 }
266
267 int p = D3EditState.current_path;
268 int n = D3EditState.current_node;
269
270 vector delta_movement = Viewer_object->orient.rvec * -D3EditState.node_movement_inc;
271
272 MovePathNode(p, n, &delta_movement);
273
274 World_changed = 1;
275 UpdateDialog();
276}
277
278void CPathPadDialog::OnPathpadMoveRight() {
279 if (Num_game_paths < 1) {

Callers

nothing calls this directly

Calls 1

MovePathNodeFunction · 0.85

Tested by

no test coverage detected