mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Zone point logging
This commit is contained in:
+19
-7
@@ -6124,16 +6124,16 @@ void Client::MarkSingleCompassLoc(float in_x, float in_y, float in_z, uint8 coun
|
||||
|
||||
void Client::SendZonePoints()
|
||||
{
|
||||
int count = 0;
|
||||
LinkedListIterator<ZonePoint*> iterator(zone->zone_point_list);
|
||||
int count = 0;
|
||||
LinkedListIterator<ZonePoint *> iterator(zone->zone_point_list);
|
||||
iterator.Reset();
|
||||
while(iterator.MoreElements())
|
||||
{
|
||||
ZonePoint* data = iterator.GetData();
|
||||
if(ClientVersionBit() & data->client_version_mask)
|
||||
{
|
||||
while (iterator.MoreElements()) {
|
||||
ZonePoint *data = iterator.GetData();
|
||||
|
||||
if (ClientVersionBit() & data->client_version_mask) {
|
||||
count++;
|
||||
}
|
||||
|
||||
iterator.Advance();
|
||||
}
|
||||
|
||||
@@ -6147,6 +6147,17 @@ void Client::SendZonePoints()
|
||||
while(iterator.MoreElements())
|
||||
{
|
||||
ZonePoint* data = iterator.GetData();
|
||||
|
||||
LogZonePoints(
|
||||
"Sending zone point to client [{}] mask [{}] x [{}] y [{}] z [{}] number [{}]",
|
||||
GetCleanName(),
|
||||
ClientVersionBit() & data->client_version_mask ? "true" : "false",
|
||||
data->x,
|
||||
data->y,
|
||||
data->z,
|
||||
data->number
|
||||
);
|
||||
|
||||
if(ClientVersionBit() & data->client_version_mask)
|
||||
{
|
||||
zp->zpe[i].iterator = data->number;
|
||||
@@ -6160,6 +6171,7 @@ void Client::SendZonePoints()
|
||||
}
|
||||
iterator.Advance();
|
||||
}
|
||||
|
||||
FastQueuePacket(&outapp);
|
||||
}
|
||||
|
||||
|
||||
+9
-3
@@ -1310,7 +1310,14 @@ bool Zone::LoadZoneCFG(const char* filename, uint16 instance_id)
|
||||
strcpy(newzone_data.zone_long_name, GetLongName());
|
||||
strcpy(newzone_data.zone_short_name2, GetShortName());
|
||||
|
||||
LogInfo("Successfully loaded Zone Config");
|
||||
LogInfo(
|
||||
"Successfully loaded Zone Config for Zone [{}] ({}) Version [{}] Instance ID [{}]",
|
||||
GetShortName(),
|
||||
GetLongName(),
|
||||
GetInstanceVersion(),
|
||||
instance_id
|
||||
);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1864,8 +1871,7 @@ ZonePoint* Zone::GetClosestZonePoint(const glm::vec3& location, uint32 to, Clien
|
||||
{
|
||||
ZonePoint* zp = iterator.GetData();
|
||||
uint32 mask_test = client->ClientVersionBit();
|
||||
if(!(zp->client_version_mask & mask_test))
|
||||
{
|
||||
if (!(zp->client_version_mask & mask_test)) {
|
||||
iterator.Advance();
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user