mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-22 22:12:26 +00:00
Fix an issue that is slowing repops down and unecessarily causing more work for respawn timer code
This commit is contained in:
parent
9446d75444
commit
d5047da637
@ -195,10 +195,8 @@ void ZoneDatabase::UpdateSpawn2Timeleft(uint32 id, uint16 instance_id, uint32 ti
|
|||||||
//if we pass timeleft as 0 that means we clear from respawn time
|
//if we pass timeleft as 0 that means we clear from respawn time
|
||||||
//otherwise we update with a REPLACE INTO
|
//otherwise we update with a REPLACE INTO
|
||||||
if(timeleft == 0) {
|
if(timeleft == 0) {
|
||||||
std::string query = StringFormat("DELETE FROM respawn_times WHERE id=%lu "
|
std::string query = StringFormat("DELETE FROM respawn_times WHERE id=%lu AND instance_id = %lu",(unsigned long)id, (unsigned long)instance_id);
|
||||||
"AND instance_id = %lu",(unsigned long)id, (unsigned long)instance_id);
|
|
||||||
auto results = QueryDatabase(query);
|
auto results = QueryDatabase(query);
|
||||||
if (!results.Success())
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user