Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7507 in orxonox.OLD for branches


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

Added bsp_tree_leaf.

Location:
branches/bsp_model/src/lib/graphics/importer
Files:
2 added
2 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
  • branches/bsp_model/src/lib/graphics/importer/bsp_file.h

    r7465 r7507  
    154154  char* leafBrushes;         //!< Buffer to store brush indice
    155155  brush* brushes;            //!< Buffer to store  brushes
    156   char* brushSides;          //!<
     156  brushside* brushSides;     //!<
    157157  char* vertice;             //!<
    158158  meshvert* meshverts;       //!<
Note: See TracChangeset for help on using the changeset viewer.