Jump to content

360 second respawn timer always??


Guest tehavatar

Recommended Posts

void Creature::setDeathState(DeathState s)

{

if ((s == JUST_DIED && !m_isDeadByDefault) || (s == JUST_ALIVED && m_isDeadByDefault))

{

m_deathTimer = m_corpseDelay*IN_MILLISECONDS;

// always save boss respawn time at death to prevent crash cheating

if (sWorld.getConfig(CONFIG_BOOL_SAVE_RESPAWN_TIME_IMMEDIATLY) || isWorldBoss())

SaveRespawnTime();

should rather be something like

void Creature::setDeathState(DeathState s)

{

if ((s == JUST_DIED && !m_isDeadByDefault) || (s == JUST_ALIVED && m_isDeadByDefault))

{

int deathTimer = m_corpseDelay >= m_respawnDelay ? m_respawnDelay : m_corpseDelay;

m_deathTimer = deathTimer*IN_MILLISECONDS;

// always save boss respawn time at death to prevent crash cheating

if (sWorld.getConfig(CONFIG_BOOL_SAVE_RESPAWN_TIME_IMMEDIATLY) || isWorldBoss())

SaveRespawnTime();

Otherwise _real_ respawn time is incorrect.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use