Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 3, 2006, 1:59:17 PM (18 years ago)
Author:
bottac
Message:

Added bsp_tree_leaf.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/lib/graphics/importer/bsp_file.cc

    r7465 r7507  
    141141    PRINTF(4)("BSP FILE: Remainder: %i. \n", size % 8);
    142142    PRINTF(4)("BSP FILE: BrushSidesOffset: %i. \n", offset);
    143     this->brushSides = new char [size];
    144     this->numBrushSides = size/8;
    145     bspFile.seekg(offset);
    146     bspFile.read(this->brushSides, size);
     143    this->numBrushSides = size/sizeof(brushside);
     144    this->brushSides = new brushside [this->numBrushSides];
     145    bspFile.seekg(offset);
     146    bspFile.read((char*)this->brushSides, size);
    147147
    148148    // Get the Vertice
Note: See TracChangeset for help on using the changeset viewer.