From a3eeb3d43e43c23b63df2b93f76526e6ff28afea Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sat, 3 Oct 2020 12:45:44 +0200 Subject: [PATCH] fixes ready delay not working --- ScStwLibraries/sources/scstwrace.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ScStwLibraries/sources/scstwrace.cpp b/ScStwLibraries/sources/scstwrace.cpp index 58cbe94..be715c1 100644 --- a/ScStwLibraries/sources/scstwrace.cpp +++ b/ScStwLibraries/sources/scstwrace.cpp @@ -551,10 +551,11 @@ QVariantMap ScStwRace::getCurrentStartDelay() { case WAITING: if(!this->startSoundSettings[ScStwSoundPlayer::Ready]["Enabled"].toBool()) return currentStartDelay; - if(!this->getIsReadyForNextState()) + if(!this->getIsReadyForNextState()) { // indicate that we are waiting for climbers and the progress shall be zero - currentStartDelay["progress"] = -1; - return currentStartDelay; + currentStartDelay["progress"] = 0; + return currentStartDelay; + } case PREPAIRING: { if(!this->startSoundSettings[ScStwSoundPlayer::AtYourMarks]["Enabled"].toBool()) return currentStartDelay;