Show
Ignore:
Timestamp:
08/15/10 00:56:03 (22 months ago)
Author:
Carsten
Message:
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cafu/trunk/CaBSP/LoadWorld.cpp

    r51 r117  
    261261    // Parse all map entities into the MFEntityList. 
    262262    ArrayT<MapFileEntityT> MFEntityList; 
    263  
    264     // Should change set of delimiters to "({})" later, when textures don't contain '{' characters anymore, or are quoted. 
    265     TextParserT TP(LoadName, "()"); 
    266  
    267     if (TP.IsAtEOF()) Error("Unable to open map file."); 
     263    TextParserT            TP(LoadName, "({})"); 
    268264 
    269265    try 
    270266    { 
    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); 
    291268 
    292269        while (!TP.IsAtEOF())