Core/Creature: Fix creature respawn time in unloaded/inactive grid cells.

Fixes issue 1865.

--HG--
branch : trunk
This commit is contained in:
linencloth
2010-09-15 06:22:54 +02:00
parent cce61839f8
commit 356a263059
3 changed files with 31 additions and 34 deletions
+2 -2
View File
@@ -589,7 +589,7 @@ class Creature : public Unit, public GridObject<Creature>
bool IsVisibleInGridForPlayer(Player const* pl) const;
void RemoveCorpse();
void RemoveCorpse(bool setSpawnTime = true);
bool isDeadByDefault() const { return m_isDeadByDefault; };
void ForcedDespawn(uint32 timeMSToDespawn = 0);
@@ -684,7 +684,7 @@ class Creature : public Unit, public GridObject<Creature>
uint64 m_lootRecipient;
/// Timers
uint32 m_deathTimer; // (msecs)timer for death or corpse disappearance
uint32 m_corpseRemoveTime; // (msecs)timer for death or corpse disappearance
time_t m_respawnTime; // (secs) time of next respawn
uint32 m_respawnDelay; // (secs) delay between corpse disappearance and respawning
uint32 m_corpseDelay; // (secs) delay between death and corpse disappearance