Skip to content

Commit

Permalink
remove const ig?
Browse files Browse the repository at this point in the history
  • Loading branch information
EmosewaMC committed Jun 12, 2024
1 parent b24a6eb commit 642d41b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dGame/dComponents/RacingControlComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Check failure on line 832 in dGame/dComponents/RacingControlComponent.cpp

View workflow job for this annotation

GitHub Actions / Build & Test (macos-13)

invalid operands to binary expression ('time_point' (aka 'time_point<std::chrono::steady_clock, duration<long long, ratio<1LL, 1000000000LL>>>') and 'std::chrono::system_clock::time_point' (aka 'time_point<system_clock>'))

// Cheating check
if (lapTime.count() < 40000) {
Expand Down

0 comments on commit 642d41b

Please sign in to comment.