Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6243 in orxonox.OLD for trunk/src/world_entities/power_ups


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

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

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  
    1919#include "factory.h"
    2020#include "state.h"
     21#include "list.h"
    2122
    2223#include "primitive_model.h"
  • 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;
  • trunk/src/world_entities/power_ups/weapon_power_up.cc

    r6222 r6243  
    1919#include "factory.h"
    2020#include "state.h"
     21#include "list.h"
    2122
    2223#include "primitive_model.h"
Note: See TracChangeset for help on using the changeset viewer.