mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-06 22:23:08 +02:00
More fixes for clang & gcc
C++14 issues, I think.
This commit is contained in:
parent
4d559bbaee
commit
3d390203e2
2 changed files with 3 additions and 3 deletions
|
@ -5475,7 +5475,7 @@ void Application::update(float deltaTime) {
|
|||
// we haven't yet enabled physics. we wait until we think we have all the collision information
|
||||
// for nearby entities before starting bullet up.
|
||||
quint64 now = usecTimestampNow();
|
||||
const int PHYSICS_CHECK_TIMEOUT = 2 * USECS_PER_SECOND;
|
||||
//const int PHYSICS_CHECK_TIMEOUT = 2 * USECS_PER_SECOND;
|
||||
auto entityTreeRenderer = getEntities();
|
||||
if (entityTreeRenderer && _octreeProcessor.octreeSequenceIsComplete(entityTreeRenderer->getLastOctreeMessageSequence()) ) {
|
||||
/*if (now - _lastPhysicsCheckTime > PHYSICS_CHECK_TIMEOUT || _fullSceneReceivedCounter > _fullSceneCounterAtLastPhysicsCheck) {*/
|
||||
|
|
|
@ -130,8 +130,8 @@ void OctreePacketProcessor::resetCompletionSequenceNumber() {
|
|||
}
|
||||
|
||||
namespace {
|
||||
template<typename T> constexpr bool lessThanWraparound(int a, int b) {
|
||||
static const int MAX_T_VALUE = std::numeric_limits<T>::max();
|
||||
template<typename T> bool lessThanWraparound(int a, int b) {
|
||||
constexpr int MAX_T_VALUE = std::numeric_limits<T>::max();
|
||||
if (b < a) {
|
||||
b += MAX_T_VALUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue