Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2005, 4:02:12 PM (18 years ago)
Author:
manuel
Message:

powerups are visible now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/powerups/src/world_entities/power_ups/power_up.cc

    r6107 r6110  
    2323using namespace std;
    2424
    25 Model* PowerUp::sphereModel = new PrimitiveModel(PRIM_SPHERE, 7, 5);
     25Model* PowerUp::sphereModel = NULL;
    2626
    2727PowerUp::PowerUp(float r, float g, float b)
    2828{
     29  if(!PowerUp::sphereModel) {
     30    PowerUp::sphereModel = new PrimitiveModel(PRIM_SPHERE, 7, 5);
     31  }
    2932  this->sphereMaterial = new Material;
    3033  this->sphereMaterial->setTransparency(.1);
Note: See TracChangeset for help on using the changeset viewer.