mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-08 07:39:53 +03:00
feat(object): handle existing objects in CreateObject
This commit is contained in:
1 file changed
+11
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user