mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
add helpful comment about mysterious code
This commit is contained in:
parent
f112ca4890
commit
08263b2672
1 changed files with 2 additions and 0 deletions
|
@ -1942,6 +1942,8 @@ int EntityTree::processEditPacketData(ReceivedMessage& message, const unsigned c
|
|||
FilterType filterType = isPhysics ? FilterType::Physics : (isAdd ? FilterType::Add : FilterType::Edit);
|
||||
bool allowed = (!isPhysics && senderNode->isAllowedEditor()) || filterProperties(existingEntity, properties, properties, wasChanged, filterType);
|
||||
if (!allowed) {
|
||||
// the update failed and we need to convey that fact to the sender
|
||||
// our method is to re-assert the current properties and bump the lastEdited timestamp
|
||||
auto timestamp = properties.getLastEdited();
|
||||
properties = EntityItemProperties();
|
||||
properties.setLastEdited(timestamp);
|
||||
|
|
Loading…
Reference in a new issue