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

Method OnPathpadInsertNode

editor/PathPadDialog.cpp:185–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void CPathPadDialog::OnPathpadInsertNode() {
186 int curpath = D3EditState.current_path;
187 int curnode = D3EditState.current_node;
188
189 if (Num_game_paths < 1) {
190 MessageBox("There are no paths to operate on.");
191 return;
192 }
193
194 curnode = InsertNodeIntoPath(curpath, curnode, 0);
195 if (curnode < 0)
196 return;
197
198 D3EditState.current_node = curnode;
199 World_changed = 1;
200 UpdateDialog();
201}
202
203void CPathPadDialog::OnPathpadDeleteNode() {
204 int curpath = D3EditState.current_path;

Callers

nothing calls this directly

Calls 1

InsertNodeIntoPathFunction · 0.85

Tested by

no test coverage detected