remove const ig?

This commit is contained in:
David Markowitz 2024-06-12 14:47:05 -07:00
parent b24a6eb591
commit 642d41b9f6

View File

@ -828,8 +828,8 @@ void RacingControlComponent::Update(float deltaTime) {
// Reached the start point, lapped
if (respawnIndex == 0) {
const auto now = std::chrono::high_resolution_clock::now();
const auto lapTime = std::chrono::duration_cast<std::chrono::milliseconds>(now - (player.lap == 0 ? m_StartTime : player.lapTime));
auto now = std::chrono::high_resolution_clock::now();
auto lapTime = std::chrono::duration_cast<std::chrono::milliseconds>(now - (player.lap == 0 ? m_StartTime : player.lapTime));
// Cheating check
if (lapTime.count() < 40000) {