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:
Seth Alves 2016-05-04 16:30:38 -07:00
parent 9db839bc13
commit 91af732516

View file

@ -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.