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

Method OnIenavButton

editor/PathPadDialog.cpp:909–917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

907void CPathPadDialog::OnSetfocusAinOtherNode() { ResetNodesForComboBox(IDC_AIN_OTHER_NODE, ENode_view_type); }
908
909void CPathPadDialog::OnIenavButton() {
910 int node = EBNode_InsertNodeOnEdge(BNode_current_id, BNode_current_room, BNode_other_id, BNode_other_room);
911 if (node >= 0) {
912 vector diff = Viewer_object->pos;
913
914 EBNode_Move(false, BNode_current_room, node, &diff);
915 World_changed = 1;
916 }
917}
918
919void CPathPadDialog::OnMvtnButton() {
920 vector pos;

Callers

nothing calls this directly

Calls 2

EBNode_InsertNodeOnEdgeFunction · 0.85
EBNode_MoveFunction · 0.85

Tested by

no test coverage detected