1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2025-09-01 06:20:15 +02:00

Fixed sound duration for missing sounds.

Issue #140.
This commit is contained in:
Muzychenko Andrey 2022-06-14 11:46:11 +03:00
parent 8017734de4
commit 5e42f37fba
2 changed files with 8 additions and 6 deletions

View file

@ -447,6 +447,8 @@ int TPinballTable::Message(int code, float value)
pinball::MissTextBox->Clear();
LightGroup->Message(28, 0.2f);
auto time = loader::play_sound(SoundIndex1, nullptr, "TPinballTable2");
if (time < 0)
time = 5.0f;
LightShowTimer = timer::set(time, this, LightShow_timeout);
}