Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2006, 6:15:10 PM (19 years ago)
Author:
rennerc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/playable.cc

    r9138 r9162  
    401401
    402402
    403 void Playable::destroy()
    404 {
    405   Explosion::explode(dynamic_cast<PNode*>(this), Vector(1.0f, 1.0f, 1.0f));
    406 
    407 
     403void Playable::destroy(WorldEntity* killer)
     404{
    408405  if( !this->bDead)
    409406  {
     
    414411      if( this == State::getPlayer()->getPlayable())
    415412        State::getGameRules()->onPlayerDeath();
    416 
    417       //     this->toList(OM_GROUP_05);
    418       //HACK: moves the entity to an unknown place far far away: in the future, GameRules will look for that
    419       this->setAbsCoor(-2000.0, -2000.0, -2000.0);
    420 
    421       //explosion hack
    422 
    423413    }
    424414    this->bDead = true;
     415   
     416    if( State::getGameRules() != NULL)
     417      State::getGameRules()->registerKill(Kill(killer, this));
    425418  }
    426419}
Note: See TracChangeset for help on using the changeset viewer.