| 183 | } |
| 184 | |
| 185 | void 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 | |
| 203 | void CPathPadDialog::OnPathpadDeleteNode() { |
| 204 | int curpath = D3EditState.current_path; |
nothing calls this directly
no test coverage detected