From 3793b1f00b985c65f52da827b9ef31767e0f249f Mon Sep 17 00:00:00 2001 From: Niklas Conen Date: Fri, 17 Dec 2021 17:37:03 +0100 Subject: [PATCH] fixed bug where smashedTimes counter cont incremented at the beginning of a race --- dGame/dComponents/RacingControlComponent.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dGame/dComponents/RacingControlComponent.cpp b/dGame/dComponents/RacingControlComponent.cpp index e7fd02c8..dd179952 100644 --- a/dGame/dComponents/RacingControlComponent.cpp +++ b/dGame/dComponents/RacingControlComponent.cpp @@ -317,7 +317,9 @@ void RacingControlComponent::OnRequestDie(Entity *player) { return; } - racingPlayer.smashedTimes++; + if (!racingPlayer.noSmashOnReload) { + racingPlayer.smashedTimes++; + } // Reset player to last checkpoint GameMessages::SendRacingSetPlayerResetInfo(