[Hotfix] Zoning logging edge case safety

This commit is contained in:
Akkadius 2023-08-28 19:51:11 -05:00
parent 1652e7a976
commit d7e09a1f3b

View File

@ -59,7 +59,7 @@ void Client::Handle_OP_ZoneChange(const EQApplicationPacket *app) {
"Client [{}] char_name [{}] zoning to [{}] ({}) instance_id [{}] x [{}] y [{}] z [{}] zone_reason [{}] success [{}] zone_mode [{}] ({})",
GetCleanName(),
zc->char_name,
ZoneName(zc->zoneID),
ZoneName(zc->zoneID) ? ZoneName(zc->zoneID) : "Unknown",
zc->zoneID,
zc->instanceID,
zc->x,
@ -152,7 +152,7 @@ void Client::Handle_OP_ZoneChange(const EQApplicationPacket *app) {
"Client [{}] attempting zone to instance_id [{}] zone [{}] ({})",
GetCleanName(),
target_instance_id,
ZoneName(target_zone_id),
ZoneName(target_zone_id) ? ZoneName(target_zone_id) : "Unknown",
target_zone_id
);
@ -388,7 +388,7 @@ void Client::SendZoneCancel(ZoneChange_Struct *zc) {
"(zs) Client [{}] char_name [{}] zoning to [{}] ({}) cancelled instance_id [{}] x [{}] y [{}] z [{}] zone_reason [{}] success [{}]",
GetCleanName(),
zc->char_name,
ZoneName(zc2->zoneID),
ZoneName(zc2->zoneID) ? ZoneName(zc2->zoneID) : "Unknown",
zc->zoneID,
zc->instanceID,
zc->x,
@ -408,7 +408,7 @@ void Client::SendZoneCancel(ZoneChange_Struct *zc) {
"(zc2) Client [{}] char_name [{}] zoning to [{}] ({}) cancelled instance_id [{}] x [{}] y [{}] z [{}] zone_reason [{}] success [{}]",
GetCleanName(),
zc2->char_name,
ZoneName(zc2->zoneID),
ZoneName(zc2->zoneID) ? ZoneName(zc2->zoneID) : "Unknown",
zc2->zoneID,
zc2->instanceID,
zc2->x,
@ -443,7 +443,7 @@ void Client::SendZoneError(ZoneChange_Struct *zc, int8 err)
"Client [{}] char_name [{}] zoning to [{}] ({}) (error) instance_id [{}] x [{}] y [{}] z [{}] zone_reason [{}] success [{}]",
GetCleanName(),
zc2->char_name,
ZoneName(zc2->zoneID),
ZoneName(zc2->zoneID) ? ZoneName(zc2->zoneID) : "Unknown",
zc2->zoneID,
zc2->instanceID,
zc2->x,
@ -493,7 +493,7 @@ void Client::DoZoneSuccess(ZoneChange_Struct *zc, uint16 zone_id, uint32 instanc
"Client [{}] char_name [{}] zoning to [{}] ({}) instance_id [{}] x [{}] y [{}] z [{}] zone_reason [{}] success [{}]",
GetCleanName(),
zc->char_name,
ZoneName(zone_id),
ZoneName(zone_id) ? ZoneName(zone_id) : "Unknown",
zone_id,
instance_id,
dest_x,