Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2006, 3:28:08 PM (19 years ago)
Author:
patrick
Message:

safer hiding and anhiding function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/world_entities/world_entity.h

    r8861 r8862  
    116116  ObjectManager::EntityList::iterator& getEntityIterator() { return this->objectListIterator; }
    117117
    118   void hide() { this->lastObjectListNumber = this->objectListNumber; this->toList(OM_DEAD); }
     118  void hide() { if( this->objectListNumber != OM_DEAD) this->lastObjectListNumber = this->objectListNumber; this->toList(OM_DEAD); }
    119119  void unhide() { this->toList(this->lastObjectListNumber); }
    120120
Note: See TracChangeset for help on using the changeset viewer.