fixes ready delay not working
This commit is contained in:
parent
da97e671a5
commit
a3eeb3d43e
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue