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,8 +218,17 @@ int32_t CreateObject(CDataStore* msg, uint32_t time) {
|
||||
auto existingObject = GetUpdateObject(guid, &reenabled);
|
||||
|
||||
if (existingObject) {
|
||||
// TODO
|
||||
return 0;
|
||||
CClientObjCreate::Skip(msg);
|
||||
|
||||
if (!FillInPartialObjectData(existingObject, existingObject->m_obj->m_guid, msg, false, true)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (reenabled) {
|
||||
existingObject->Reenable();
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
CClientObjCreate objCreate;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user