mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
even more steps sounds test
This commit is contained in:
parent
015b1c2ed7
commit
90f3373f46
11 changed files with 56 additions and 22 deletions
|
|
@ -249,6 +249,9 @@ speakerid_t audio::play(
|
|||
int priority,
|
||||
int channel
|
||||
) {
|
||||
if (sound == nullptr) {
|
||||
return 0;
|
||||
}
|
||||
if (!sound->variants.empty()) {
|
||||
size_t index = rand() % (sound->variants.size() + 1);
|
||||
if (index < sound->variants.size()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue