mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-09-28 18:57:35 +00:00
[refactor] BaseNPC now uses Entity XYZ fields for handling positions
- fixed many references to Entity.appearanceData.i[XYZ] to use the base Entity XYZ values - BaseNPC::enterIntoViewOf grabs the position from the base Entity XYZ values - NPCManager::updateNPCPosition updates the base Entity XYZ values - MobAI.c/deadStep() also sends it's packet based on the Entity XYZ values
This commit is contained in:
@@ -333,9 +333,9 @@ static void nanoRecallRegisterHandler(CNSocket* sock, CNPacketData* data) {
|
||||
|
||||
INITSTRUCT(sP_FE2CL_REP_REGIST_RXCOM, response);
|
||||
response.iMapNum = plr->recallInstance = (int32_t)npc->instanceID; // Never going to recall into a Fusion Lair
|
||||
response.iX = plr->recallX = npc->appearanceData.iX;
|
||||
response.iY = plr->recallY = npc->appearanceData.iY;
|
||||
response.iZ = plr->recallZ = npc->appearanceData.iZ;
|
||||
response.iX = plr->recallX = npc->x;
|
||||
response.iY = plr->recallY = npc->y;
|
||||
response.iZ = plr->recallZ = npc->z;
|
||||
sock->sendPacket(response, P_FE2CL_REP_REGIST_RXCOM);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user