mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 18:16:08 +02:00
formatting, fix a bug
This commit is contained in:
parent
56b50b5fb3
commit
fa7a5f1a61
1 changed files with 2 additions and 1 deletions
|
@ -35,6 +35,7 @@
|
|||
bool EntityItem::_sendPhysicsUpdates = true;
|
||||
int EntityItem::_maxActionsDataSize = 800;
|
||||
quint64 EntityItem::_rememberDeletedActionTime = 20; // seconds
|
||||
|
||||
EntityItem::EntityItem(const EntityItemID& entityItemID) :
|
||||
_type(EntityTypes::Unknown),
|
||||
_id(entityItemID),
|
||||
|
@ -1682,7 +1683,7 @@ void EntityItem::deserializeActionsInternal() {
|
|||
QMutableHashIterator<QUuid, quint64> _previouslyDeletedIter(_previouslyDeletedActions);
|
||||
while (_previouslyDeletedIter.hasNext()) {
|
||||
_previouslyDeletedIter.next();
|
||||
if (_previouslyDeletedIter.value() - now > _rememberDeletedActionTime) {
|
||||
if (now - _previouslyDeletedIter.value() > _rememberDeletedActionTime) {
|
||||
_previouslyDeletedActions.remove(_previouslyDeletedIter.key());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue