mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 17:51:28 +00:00
[Spawns] Fixes a rarer issue where spawn2 is not being properly content filtered
This commit is contained in:
parent
c3d41e08f4
commit
140aba9f69
@ -26,6 +26,7 @@
|
|||||||
#include "worldserver.h"
|
#include "worldserver.h"
|
||||||
#include "zone.h"
|
#include "zone.h"
|
||||||
#include "zonedb.h"
|
#include "zonedb.h"
|
||||||
|
#include "../common/repositories/criteria/content_filter_criteria.h"
|
||||||
|
|
||||||
extern EntityList entity_list;
|
extern EntityList entity_list;
|
||||||
extern Zone* zone;
|
extern Zone* zone;
|
||||||
@ -467,7 +468,7 @@ bool ZoneDatabase::PopulateZoneSpawnList(uint32 zoneid, LinkedList<Spawn2*> &spa
|
|||||||
LogInfo("Loaded [{}] respawn timer(s)", Strings::Commify(results.RowCount()));
|
LogInfo("Loaded [{}] respawn timer(s)", Strings::Commify(results.RowCount()));
|
||||||
|
|
||||||
const char *zone_name = ZoneName(zoneid);
|
const char *zone_name = ZoneName(zoneid);
|
||||||
std::string query = StringFormat(
|
std::string query = fmt::format(
|
||||||
"SELECT "
|
"SELECT "
|
||||||
"id, "
|
"id, "
|
||||||
"spawngroupID, "
|
"spawngroupID, "
|
||||||
@ -485,7 +486,8 @@ bool ZoneDatabase::PopulateZoneSpawnList(uint32 zoneid, LinkedList<Spawn2*> &spa
|
|||||||
"animation "
|
"animation "
|
||||||
"FROM "
|
"FROM "
|
||||||
"spawn2 "
|
"spawn2 "
|
||||||
"WHERE zone = '%s' AND (version = %u OR version = -1)",
|
"WHERE TRUE {} AND zone = '{}' AND (version = {} OR version = -1) ",
|
||||||
|
ContentFilterCriteria::apply(),
|
||||||
zone_name,
|
zone_name,
|
||||||
version
|
version
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user