mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
fix(mail): new mail notices in live's form
Live filled a NewMail notice with the mail it was about: the mail ID, the player, the attachment (LOT -1 without one) and a count of 1, and at load sent one notice per unread mail. DLU sent one notice with every field 0 and the unread total as the count. The answer to NotificationRequest names the player and no mail, with LOT -1 and the unread count, as live's did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1228,7 +1228,7 @@ void LoadPlayer(const SystemAddress& sysAddr) {
|
||||
invalidTransferList.bCustomerFeedbackOnInvalidMapTransfer = false;
|
||||
invalidTransferList.SendToClient(sysAddr);
|
||||
GameMessages::SendDoneLoading(player->GetObjectID(), respawnPoint, spawnPosition, spawnRotation, sysAddr);
|
||||
Mail::NotifyUnreadMailOnLoad(Database::Get()->GetUnreadMailCount(c->GetID()), sysAddr);
|
||||
Mail::NotifyUnreadMailOnLoad(c->GetID(), player->GetObjectID(), sysAddr);
|
||||
|
||||
//Notify chat that a player has loaded:
|
||||
auto* character = player->GetCharacter();
|
||||
|
||||
Reference in New Issue
Block a user