mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 13:37:22 +00:00
saving changes
This commit is contained in:
parent
37c2c5db5d
commit
10f8d40b69
@ -239,7 +239,7 @@ void Character::SaveXMLToDatabase() {
|
|||||||
|
|
||||||
auto zoneInfo = Game::zoneManager->GetZone()->GetZoneID();
|
auto zoneInfo = Game::zoneManager->GetZone()->GetZoneID();
|
||||||
// lzid garbage, binary concat of zoneID, zoneInstance and zoneClone
|
// lzid garbage, binary concat of zoneID, zoneInstance and zoneClone
|
||||||
if (zoneInfo.GetMapID() != 0 && zoneInfo.GetCloneID() == 0 && !Game::zoneManager->GetDisableSaveLocation()) {
|
// if (zoneInfo.GetMapID() != 0 && zoneInfo.GetCloneID() == 0 && !Game::zoneManager->GetDisableSaveLocation()) {
|
||||||
uint64_t lzidConcat = zoneInfo.GetCloneID();
|
uint64_t lzidConcat = zoneInfo.GetCloneID();
|
||||||
lzidConcat = (lzidConcat << 16) | uint16_t(zoneInfo.GetInstanceID());
|
lzidConcat = (lzidConcat << 16) | uint16_t(zoneInfo.GetInstanceID());
|
||||||
lzidConcat = (lzidConcat << 16) | uint16_t(zoneInfo.GetMapID());
|
lzidConcat = (lzidConcat << 16) | uint16_t(zoneInfo.GetMapID());
|
||||||
@ -251,7 +251,7 @@ void Character::SaveXMLToDatabase() {
|
|||||||
|
|
||||||
// Set the target scene, custom attribute
|
// Set the target scene, custom attribute
|
||||||
character->SetAttribute("tscene", m_TargetScene.c_str());
|
character->SetAttribute("tscene", m_TargetScene.c_str());
|
||||||
}
|
// }
|
||||||
|
|
||||||
auto emotes = character->FirstChildElement("ue");
|
auto emotes = character->FirstChildElement("ue");
|
||||||
if (!emotes) emotes = m_Doc.NewElement("ue");
|
if (!emotes) emotes = m_Doc.NewElement("ue");
|
||||||
|
@ -187,7 +187,7 @@ void ControllablePhysicsComponent::UpdateXml(tinyxml2::XMLDocument& doc) {
|
|||||||
|
|
||||||
auto zoneInfo = Game::zoneManager->GetZone()->GetZoneID();
|
auto zoneInfo = Game::zoneManager->GetZone()->GetZoneID();
|
||||||
|
|
||||||
if (zoneInfo.GetMapID() != 0 && zoneInfo.GetCloneID() == 0 && !Game::zoneManager->GetDisableSaveLocation()) {
|
// if (zoneInfo.GetMapID() != 0 && zoneInfo.GetCloneID() == 0 && !Game::zoneManager->GetDisableSaveLocation()) {
|
||||||
character->SetAttribute("lzx", m_Position.x);
|
character->SetAttribute("lzx", m_Position.x);
|
||||||
character->SetAttribute("lzy", m_Position.y);
|
character->SetAttribute("lzy", m_Position.y);
|
||||||
character->SetAttribute("lzz", m_Position.z);
|
character->SetAttribute("lzz", m_Position.z);
|
||||||
@ -195,7 +195,7 @@ void ControllablePhysicsComponent::UpdateXml(tinyxml2::XMLDocument& doc) {
|
|||||||
character->SetAttribute("lzry", m_Rotation.y);
|
character->SetAttribute("lzry", m_Rotation.y);
|
||||||
character->SetAttribute("lzrz", m_Rotation.z);
|
character->SetAttribute("lzrz", m_Rotation.z);
|
||||||
character->SetAttribute("lzrw", m_Rotation.w);
|
character->SetAttribute("lzrw", m_Rotation.w);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
void ControllablePhysicsComponent::SetPosition(const NiPoint3& pos) {
|
void ControllablePhysicsComponent::SetPosition(const NiPoint3& pos) {
|
||||||
|
Loading…
Reference in New Issue
Block a user