mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 05:42:08 +02:00
interface/raypick: Fix -Wdouble-promotion.
This commit is contained in:
parent
91076e2000
commit
e33a5006d5
2 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@ std::shared_ptr<PickQuery> PickScriptingInterface::buildRayPick(const QVariantMa
|
|||
if (propMap["delay"].isValid()) {
|
||||
// We want to be within 0.1% of the target in <delay> seconds
|
||||
// https://twitter.com/FreyaHolmer/status/1757836988495847568
|
||||
delayHalf = -std::max(propMap["delay"].toFloat(), 0.0f) / log2(0.001);
|
||||
delayHalf = -std::max(propMap["delay"].toFloat(), 0.0f) / log2(0.001f);
|
||||
}
|
||||
|
||||
auto rayPick = std::make_shared<RayPick>(position, direction, filter, maxDistance, delayHalf, enabled);
|
||||
|
|
|
@ -102,7 +102,7 @@ void RayPick::setDelay(float delay) {
|
|||
withWriteLock([&] {
|
||||
// We want to be within 0.1% of the target in <delay> seconds
|
||||
// https://twitter.com/FreyaHolmer/status/1757836988495847568
|
||||
_delayHalf = -std::max(delay, 0.0f) / log2(0.001);
|
||||
_delayHalf = -std::max(delay, 0.0f) / log2(0.001f);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue