Fix compile errors

This commit is contained in:
fearlessTobi 2018-07-26 13:23:25 +02:00
parent 7a3e126a4f
commit 71e1d6e25d
13 changed files with 20 additions and 12 deletions

View file

@ -2,6 +2,7 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include <algorithm>
#include <chrono>
#include <mutex>
#include <thread>
@ -45,7 +46,7 @@ public:
} else {
tilt_direction = mouse_move.Cast<float>();
tilt_angle = std::clamp(tilt_direction.Normalize() * sensitivity, 0.0f,
MathUtil::PI * this->tilt_clamp / 180.0f);
MathUtil::PI * this->tilt_clamp / 180.0f);
}
}
}