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:
|
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;
|
||||||
|
|
Reference in a new issue