| 271 | | TP.AssertAndSkipToken("Version"); |
| 272 | | const std::string Version=TP.GetNextToken(); |
| 273 | | |
| 274 | | if (Version!="13") |
| 275 | | { |
| 276 | | Console->Print("Bad map file version: Expected 13, got "+Version+".\n"); |
| 277 | | Console->Print("To fix this, you can load your cmap file into CaWE and re-save it.\n"); |
| 278 | | Console->Print("This will automatically update your file to the required version!\n"); |
| 279 | | |
| 280 | | Console->Warning("Bad map file version: Expected 13, got "+Version+".\n"); |
| 281 | | throw TextParserT::ParseError(); |
| 282 | | } |
| 283 | | |
| 284 | | // Skip any group definitions. |
| 285 | | while (TP.PeekNextToken()=="GroupDef") |
| 286 | | { |
| 287 | | // Example line: |
| 288 | | // GroupDef 0 "control room" "rgb(189, 206, 184)" 1 1 0 |
| 289 | | for (unsigned int TokenNr=0; TokenNr<7; TokenNr++) TP.GetNextToken(); |
| 290 | | } |
| | 267 | MapFileReadHeader(TP); |