mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Welp, ended up doing client as well since world and client are in the wroing places.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include "ZoneInstanceManager.h"
|
||||
#include "Game.h"
|
||||
#include "Logger.h"
|
||||
#include "WorldPackets.h"
|
||||
#include "ClientPackets.h"
|
||||
#include "EntityManager.h"
|
||||
#include "ChatPackets.h"
|
||||
#include "BitStreamUtils.h"
|
||||
@@ -537,7 +537,11 @@ void ActivityInstance::StartZone() {
|
||||
player->GetCharacter()->SetZoneClone(zoneClone);
|
||||
}
|
||||
|
||||
WorldPackets::SendTransferToWorld(player->GetSystemAddress(), serverIP, serverPort, mythranShift);
|
||||
ClientPackets::TransferToWorld response;
|
||||
response.serverIP = serverIP;
|
||||
response.serverPort = serverPort;
|
||||
response.mythranShift = mythranShift;
|
||||
response.Send(player->GetSystemAddress());
|
||||
return;
|
||||
});
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@
|
||||
#include "CDRewardCodesTable.h"
|
||||
#include "Mail.h"
|
||||
#include "ZoneInstanceManager.h"
|
||||
#include "WorldPackets.h"
|
||||
#include "ClientPackets.h"
|
||||
#include "MessageType/Game.h"
|
||||
#include <ctime>
|
||||
|
||||
@@ -868,8 +868,11 @@ void CharacterComponent::SendToZone(LWOMAPID zoneId, LWOCLONEID cloneId) const {
|
||||
character->SaveXMLToDatabase();
|
||||
}
|
||||
|
||||
WorldPackets::SendTransferToWorld(sysAddr, serverIP, serverPort, mythranShift);
|
||||
|
||||
ClientPackets::TransferToWorld response;
|
||||
response.serverIP = serverIP;
|
||||
response.serverPort = serverPort;
|
||||
response.mythranShift = mythranShift;
|
||||
response.Send(sysAddr);
|
||||
Game::entityManager->DestructEntity(entity);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user