fix: add missing header for android
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#include "misc/Time.h"
|
#include "misc/Time.h"
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
namespace td {
|
namespace td {
|
||||||
namespace utils {
|
namespace utils {
|
||||||
@@ -44,7 +45,7 @@ void Timer::reset() {
|
|||||||
|
|
||||||
bool CooldownTimer::update(std::uint64_t delta) {
|
bool CooldownTimer::update(std::uint64_t delta) {
|
||||||
if (m_Cooldown > 0) {
|
if (m_Cooldown > 0) {
|
||||||
m_Cooldown = std::max(0L, static_cast<std::int64_t>(m_Cooldown - delta));
|
m_Cooldown = std::max(static_cast<std::int64_t>(0), static_cast<std::int64_t>(m_Cooldown - delta));
|
||||||
}
|
}
|
||||||
return m_Cooldown == 0;
|
return m_Cooldown == 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user