mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
changing calculation of load percentage
This commit is contained in:
parent
28c3afca9d
commit
84cf40f8aa
1 changed files with 1 additions and 2 deletions
|
@ -130,8 +130,7 @@ bool SafeLanding::isLoadSequenceComplete() {
|
|||
float SafeLanding::loadingProgressPercentage() {
|
||||
Locker lock(_lock);
|
||||
if (_maxTrackedEntityCount > 0) {
|
||||
float trackedEntityCount = (float)_trackedEntitiesRenderStatus.size();
|
||||
return ((_maxTrackedEntityCount - trackedEntityCount) / _maxTrackedEntityCount);
|
||||
return ((_maxTrackedEntityCount - _trackedEntitiesRenderStatus.size()) / (float)_maxTrackedEntityCount);
|
||||
}
|
||||
|
||||
return 0.0f;
|
||||
|
|
Loading…
Reference in a new issue