Load a new level
| 612 | |
| 613 | // Load a new level |
| 614 | bool EditorLoadLevel(char *filename) { |
| 615 | if (LoadLevel(filename)) { |
| 616 | |
| 617 | // Check for duplicate names in the level |
| 618 | CheckLevelNames(); |
| 619 | |
| 620 | New_mine = 1; // say that this is a new mine |
| 621 | |
| 622 | // Set viewer object |
| 623 | SetEditorViewer(); |
| 624 | |
| 625 | // Reset view radius |
| 626 | ResetWireframeViewRad(); |
| 627 | |
| 628 | // Done |
| 629 | return TRUE; |
| 630 | } else |
| 631 | return FALSE; |
| 632 | } |
| 633 | |
| 634 | // Save the current level |
| 635 | // Returns 1 if level saved sucessfully |
no test coverage detected