mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-07-04 10:39:55 +00:00
remove const ig?
This commit is contained in:
parent
b24a6eb591
commit
642d41b9f6
@ -828,8 +828,8 @@ void RacingControlComponent::Update(float deltaTime) {
|
|||||||
|
|
||||||
// Reached the start point, lapped
|
// Reached the start point, lapped
|
||||||
if (respawnIndex == 0) {
|
if (respawnIndex == 0) {
|
||||||
const auto now = std::chrono::high_resolution_clock::now();
|
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 lapTime = std::chrono::duration_cast<std::chrono::milliseconds>(now - (player.lap == 0 ? m_StartTime : player.lapTime));
|
||||||
|
|
||||||
// Cheating check
|
// Cheating check
|
||||||
if (lapTime.count() < 40000) {
|
if (lapTime.count() < 40000) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user