fixes ready delay not working

This commit is contained in:
Dorian Zedler 2020-10-03 12:45:44 +02:00
parent da97e671a5
commit a3eeb3d43e
Signed by: dorian
GPG key ID: D3B255CB8BC7CD37

View file

@ -551,10 +551,11 @@ QVariantMap ScStwRace::getCurrentStartDelay() {
case WAITING: case WAITING:
if(!this->startSoundSettings[ScStwSoundPlayer::Ready]["Enabled"].toBool()) if(!this->startSoundSettings[ScStwSoundPlayer::Ready]["Enabled"].toBool())
return currentStartDelay; return currentStartDelay;
if(!this->getIsReadyForNextState()) if(!this->getIsReadyForNextState()) {
// indicate that we are waiting for climbers and the progress shall be zero // indicate that we are waiting for climbers and the progress shall be zero
currentStartDelay["progress"] = -1; currentStartDelay["progress"] = 0;
return currentStartDelay; return currentStartDelay;
}
case PREPAIRING: { case PREPAIRING: {
if(!this->startSoundSettings[ScStwSoundPlayer::AtYourMarks]["Enabled"].toBool()) if(!this->startSoundSettings[ScStwSoundPlayer::AtYourMarks]["Enabled"].toBool())
return currentStartDelay; return currentStartDelay;