Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 21, 2005, 3:41:11 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the power-ups to the tunk again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/power_ups/power_up.cc

    r6150 r6243  
    2727PowerUp::PowerUp(float r, float g, float b)
    2828{
     29  this->respawnType = RESPAWN_NONE;
    2930  if(!PowerUp::sphereModel) {
    3031    PowerUp::sphereModel = new PrimitiveModel(PRIM_SPHERE, 7, 5);
     
    3334  this->sphereMaterial->setTransparency(.1);
    3435  this->sphereMaterial->setDiffuse(r, g, b);
    35 
    3636  this->toList(OM_COMMON);
    3737}
     
    9090{
    9191  for(int i = 0; i < RESPAWN_size; ++i) {
    92     if(strcmp(type, respawnTypes[i]) == 0) {
     92    if(!strcmp(type, respawnTypes[i])) {
    9393      this->respawnType = (PowerUpRespawn)i;
    9494      break;
Note: See TracChangeset for help on using the changeset viewer.