Core/Spawns: Exterminate CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY with extreme prejudice. (It didn't work anyway.)

(cherry picked from commit 26440857c1)
This commit is contained in:
Treeston
2019-07-15 15:57:04 +02:00
committed by Shauren
parent be05590a12
commit d5e58cef69
11 changed files with 16 additions and 59 deletions

View File

@@ -1075,12 +1075,7 @@ void Map::RemoveFromMap(T *obj, bool remove)
obj->ResetMap();
if (remove)
{
// if option set then object already saved at this moment
if (!sWorld->getBoolConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY))
obj->SaveRespawnTime();
DeleteFromWorld(obj);
}
}
template<>
@@ -1120,12 +1115,7 @@ void Map::RemoveFromMap(Transport* obj, bool remove)
obj->ResetMap();
if (remove)
{
// if option set then object already saved at this moment
if (!sWorld->getBoolConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY))
obj->SaveRespawnTime();
DeleteFromWorld(obj);
}
}
template <typename T>