increase sim priority when flagged for ownership

This commit is contained in:
Andrew Meadows 2015-06-16 09:46:24 -07:00
parent 2579247c34
commit 8510110324

View file

@ -122,6 +122,7 @@ void EntityMotionState::handleEasyChanges(uint32_t flags) {
_candidateForOwnership = true; _candidateForOwnership = true;
_loopsSinceOwnershipBid = uint32_t(-1); _loopsSinceOwnershipBid = uint32_t(-1);
_loopsWithoutOwner = uint32_t(-1); _loopsWithoutOwner = uint32_t(-1);
_simulatorPriorityHint = SCRIPT_EDIT_SIMULATOR_PRIORITY;
} }
if ((flags & EntityItem::DIRTY_PHYSICS_ACTIVATION) && !_body->isActive()) { if ((flags & EntityItem::DIRTY_PHYSICS_ACTIVATION) && !_body->isActive()) {
_body->activate(); _body->activate();