mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:44:01 +02:00
if we receive an update from the entity-server that doesn't include one of our actions, resend the action data
This commit is contained in:
parent
9db839bc13
commit
91af732516
1 changed files with 6 additions and 0 deletions
|
@ -1847,6 +1847,12 @@ void EntityItem::deserializeActionsInternal() {
|
|||
QUuid id = i.key();
|
||||
if (!updated.contains(id)) {
|
||||
EntityActionPointer action = i.value();
|
||||
|
||||
if (action->isMine()) {
|
||||
// we just received an update that didn't include one of our actions. tell the server about it.
|
||||
setActionDataNeedsTransmit(true);
|
||||
}
|
||||
|
||||
// don't let someone else delete my action.
|
||||
if (!action->isMine() &&
|
||||
// if we've just added this action, don't remove it due to lack of mention in an incoming packet.
|
||||
|
|
Loading…
Reference in a new issue