Changeset 7078 in orxonox.OLD for trunk/src/world_entities/playable.cc
- Timestamp:
- Feb 7, 2006, 4:13:01 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/playable.cc
r7072 r7078 163 163 if (State::isOnline()) 164 164 { 165 if( this == State::getPlayer()->getPlayable()) 166 State::getGameRules()->onPlayerDeath(); 167 168 this->toList(OM_DEAD); 169 //.HACK: moves the entity to an unknown place far far away: in the future, GameRules will look for that 170 this->setAbsCoor(-2000.0, -2000.0, -2000.0); 165 if( this == State::getPlayer()->getPlayable()) 166 State::getGameRules()->onPlayerDeath(); 167 168 169 this->toList(OM_DEAD); 170 //HACK: moves the entity to an unknown place far far away: in the future, GameRules will look for that 171 this->setAbsCoor(-2000.0, -2000.0, -2000.0); 171 172 172 173 //explosion hack 173 this->emitter->setSystem(explosionParticles);174 this->setAbsCoor(0, 0, 0);175 this->emitter->setSystem(NULL);174 this->emitter->setSystem(explosionParticles); 175 this->setAbsCoor(0, 0, 0); 176 this->emitter->setSystem(NULL); 176 177 } 177 178 }
Note: See TracChangeset
for help on using the changeset viewer.