mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-18 17:55:27 +00:00
fix: adapt the transfers of a match, a rescue and a property reload to a failed transfer
The chat server passes the master server's answer for a match on to the world servers as it is, and a world server tells each player of the match that the map change failed. A player moved from the dashboard and the players of a property that loads again are told the same, and their characters stay in the zone they are in. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "DashboardActions.h"
|
||||
#include "WorldPackets.h"
|
||||
|
||||
#include "master/PlayerAction.h"
|
||||
#include "Game.h"
|
||||
@@ -144,6 +145,7 @@ namespace {
|
||||
[objectId, spawnPoint](bool mythranShift, uint32_t zoneID, uint32_t zoneInstance, uint32_t zoneClone, std::string serverIP, uint16_t serverPort) {
|
||||
auto* entity = Game::entityManager->GetEntity(objectId);
|
||||
if (!entity || !entity->GetCharacter()) return;
|
||||
if (WorldPackets::SendIfTransferFailed(entity->GetSystemAddress(), serverIP, serverPort)) return;
|
||||
|
||||
auto* character = entity->GetCharacter();
|
||||
if (auto* characterComponent = entity->GetComponent<CharacterComponent>()) {
|
||||
|
||||
Reference in New Issue
Block a user