mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(object): handle existing objects in CreateObject
This commit is contained in:
parent
1e13e33f2a
commit
082bc06c69
@ -218,10 +218,19 @@ int32_t CreateObject(CDataStore* msg, uint32_t time) {
|
|||||||
auto existingObject = GetUpdateObject(guid, &reenabled);
|
auto existingObject = GetUpdateObject(guid, &reenabled);
|
||||||
|
|
||||||
if (existingObject) {
|
if (existingObject) {
|
||||||
// TODO
|
CClientObjCreate::Skip(msg);
|
||||||
|
|
||||||
|
if (!FillInPartialObjectData(existingObject, existingObject->m_obj->m_guid, msg, false, true)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (reenabled) {
|
||||||
|
existingObject->Reenable();
|
||||||
|
}
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
CClientObjCreate objCreate;
|
CClientObjCreate objCreate;
|
||||||
if (!objCreate.Get(msg)) {
|
if (!objCreate.Get(msg)) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user