Changeset 6243 in orxonox.OLD for trunk/src/world_entities/power_ups/power_up.cc
- Timestamp:
- Dec 21, 2005, 3:41:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/power_ups/power_up.cc
r6150 r6243 27 27 PowerUp::PowerUp(float r, float g, float b) 28 28 { 29 this->respawnType = RESPAWN_NONE; 29 30 if(!PowerUp::sphereModel) { 30 31 PowerUp::sphereModel = new PrimitiveModel(PRIM_SPHERE, 7, 5); … … 33 34 this->sphereMaterial->setTransparency(.1); 34 35 this->sphereMaterial->setDiffuse(r, g, b); 35 36 36 this->toList(OM_COMMON); 37 37 } … … 90 90 { 91 91 for(int i = 0; i < RESPAWN_size; ++i) { 92 if( strcmp(type, respawnTypes[i]) == 0) {92 if(!strcmp(type, respawnTypes[i])) { 93 93 this->respawnType = (PowerUpRespawn)i; 94 94 break;
Note: See TracChangeset
for help on using the changeset viewer.