Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 7, 2006, 8:56:57 PM (18 years ago)
Author:
bensch
Message:

power ups can only be picked up once

File:
1 edited

Legend:

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

    r7077 r7102  
    4747  this->pickupBuffer = NULL;
    4848  this->respawnBuffer = NULL;
     49
     50  this->collider = NULL;
    4951}
    5052
     
    120122  if(entity->isA(CL_EXTENDABLE))
    121123  {
     124    this->collider = entity;
    122125    if(dynamic_cast<Extendable*>(entity)->pickup(this))
    123126    {
     
    144147    {
    145148      this->toList(OM_COMMON);
     149      this->collider = NULL;
    146150      if (likely(this->respawnBuffer != NULL))
    147151        this->soundSource.play(this->respawnBuffer);
Note: See TracChangeset for help on using the changeset viewer.