mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-19 08:11:30 +00:00
Filter zone_points [skip ci]
This commit is contained in:
parent
9aac84a405
commit
2f4a217f7a
@ -1841,16 +1841,22 @@ ZonePoint* Zone::GetClosestZonePointWithoutZone(float x, float y, float z, Clien
|
|||||||
return closest_zp;
|
return closest_zp;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ZoneDatabase::LoadStaticZonePoints(LinkedList<ZonePoint*>* zone_point_list, const char* zonename, uint32 version)
|
bool ZoneDatabase::LoadStaticZonePoints(LinkedList<ZonePoint *> *zone_point_list, const char *zonename, uint32 version)
|
||||||
{
|
{
|
||||||
zone_point_list->Clear();
|
zone_point_list->Clear();
|
||||||
zone->numzonepoints = 0;
|
zone->numzonepoints = 0;
|
||||||
std::string query = StringFormat("SELECT x, y, z, target_x, target_y, "
|
|
||||||
|
std::string query = StringFormat(
|
||||||
|
"SELECT x, y, z, target_x, target_y, "
|
||||||
"target_z, target_zone_id, heading, target_heading, "
|
"target_z, target_zone_id, heading, target_heading, "
|
||||||
"number, target_instance, client_version_mask "
|
"number, target_instance, client_version_mask "
|
||||||
"FROM zone_points WHERE zone='%s' AND (version=%i OR version=-1) "
|
"FROM zone_points WHERE zone='%s' AND (version=%i OR version=-1) %s"
|
||||||
"ORDER BY number",
|
"ORDER BY number",
|
||||||
zonename, version);
|
zonename,
|
||||||
|
version,
|
||||||
|
ContentFilterCriteria::apply().c_str()
|
||||||
|
);
|
||||||
|
|
||||||
auto results = QueryDatabase(query);
|
auto results = QueryDatabase(query);
|
||||||
if (!results.Success()) {
|
if (!results.Success()) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user