mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
fix mistakes
This commit is contained in:
parent
bd5fc65bfb
commit
ab20643ada
1 changed files with 6 additions and 6 deletions
|
@ -2834,7 +2834,7 @@ DEFINE_PROPERTY_ACCESSOR(quint32, StaticCertificateVersion, staticCertificateVer
|
|||
uint32_t EntityItem::getDirtyFlags() const {
|
||||
uint32_t result;
|
||||
withReadLock([&] {
|
||||
result = _flags & Simulation::SPECIAL_FLAGS;
|
||||
result = _flags & Simulation::DIRTY_FLAGS;
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
@ -2842,14 +2842,14 @@ uint32_t EntityItem::getDirtyFlags() const {
|
|||
|
||||
void EntityItem::markDirtyFlags(uint32_t mask) {
|
||||
withWriteLock([&] {
|
||||
mask &= ~Simulation::SPECIAL_FLAGS;
|
||||
mask &= Simulation::DIRTY_FLAGS;
|
||||
_flags |= mask;
|
||||
});
|
||||
}
|
||||
|
||||
void EntityItem::clearDirtyFlags(uint32_t mask) {
|
||||
withWriteLock([&] {
|
||||
mask &= ~Simulation::SPECIAL_FLAGS;
|
||||
mask &= Simulation::DIRTY_FLAGS;
|
||||
_flags &= ~mask;
|
||||
});
|
||||
}
|
||||
|
@ -2857,21 +2857,21 @@ void EntityItem::clearDirtyFlags(uint32_t mask) {
|
|||
uint32_t EntityItem::getSpecialFlags() const {
|
||||
uint32_t result;
|
||||
withReadLock([&] {
|
||||
result = _flags & Simulation::DIRTY_FLAGS;
|
||||
result = _flags & Simulation::SPECIAL_FLAGS;
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
void EntityItem::markSpecialFlags(uint32_t mask) {
|
||||
withWriteLock([&] {
|
||||
mask &= ~Simulation::DIRTY_FLAGS;
|
||||
mask &= Simulation::SPECIAL_FLAGS;
|
||||
_flags |= mask;
|
||||
});
|
||||
}
|
||||
|
||||
void EntityItem::clearSpecialFlags(uint32_t mask) {
|
||||
withWriteLock([&] {
|
||||
mask &= ~Simulation::DIRTY_FLAGS;
|
||||
mask &= Simulation::SPECIAL_FLAGS;
|
||||
_flags &= ~mask;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue