declare method const

This commit is contained in:
Andrew Meadows 2018-05-31 10:22:22 -07:00
parent feacb18290
commit 62df4999ef
2 changed files with 2 additions and 2 deletions

View file

@ -781,7 +781,7 @@ void EntityMotionState::computeCollisionGroupAndMask(int32_t& group, int32_t& ma
_entity->computeCollisionGroupAndFinalMask(group, mask);
}
bool EntityMotionState::shouldSendBid() {
bool EntityMotionState::shouldSendBid() const {
// NOTE: this method is only ever called when the entity's simulation is NOT locally owned
return _body->isActive() && (_region == workload::Region::R1) &&
glm::max(glm::max(VOLUNTEER_SIMULATION_PRIORITY, _bumpedPriority), _entity->getScriptSimulationPriority()) >= _entity->getSimulationPriority();

View file

@ -87,7 +87,7 @@ public:
virtual void computeCollisionGroupAndMask(int32_t& group, int32_t& mask) const override;
bool shouldSendBid();
bool shouldSendBid() const;
uint8_t computeFinalBidPriority() const;
bool isLocallyOwned() const override;