/ * ReadLevelData: Read in the given room file, and extract Vertices, LineDefs, * SideDefs, and Sectors. */
| 78 | * SideDefs, and Sectors. |
| 79 | */ |
| 80 | void ReadLevelData (char *levelname) |
| 81 | { |
| 82 | int infile; |
| 83 | |
| 84 | infile = open(levelname, O_BINARY | O_RDONLY); |
| 85 | if (infile < 0) |
| 86 | { |
| 87 | Notify("Error opening file %s", levelname); |
| 88 | return; |
| 89 | } |
| 90 | if (LoadRoom(infile) == FALSE) |
| 91 | Notify("Error reading file %s", levelname); |
| 92 | |
| 93 | close(infile); |
| 94 | |
| 95 | return; |
| 96 | } |
| 97 | /***************************************************************************/ |
| 98 | /* |
| 99 | * AddVertex: Add given vertex if it doesn't already appear in Vertexes. |
no test coverage detected