Changeset 6243 in orxonox.OLD for trunk/src/world_entities/power_ups
- Timestamp:
- Dec 21, 2005, 3:41:11 PM (19 years ago)
- Location:
- trunk/src/world_entities/power_ups
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/power_ups/param_power_up.cc
r6222 r6243 19 19 #include "factory.h" 20 20 #include "state.h" 21 #include "list.h" 21 22 22 23 #include "primitive_model.h" -
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; -
trunk/src/world_entities/power_ups/weapon_power_up.cc
r6222 r6243 19 19 #include "factory.h" 20 20 #include "state.h" 21 #include "list.h" 21 22 22 23 #include "primitive_model.h"
Note: See TracChangeset
for help on using the changeset viewer.