mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Rename rand_step to be more accurate
This commit is contained in:
parent
838d1efe5a
commit
43a3f5ae8e
@ -263,8 +263,8 @@ impl SfxMgr {
|
|||||||
.last()
|
.last()
|
||||||
.expect("Failed to determine sound file for this trigger item."),
|
.expect("Failed to determine sound file for this trigger item."),
|
||||||
_ => {
|
_ => {
|
||||||
let rand_step = rand::random::<usize>() % item.files.len();
|
let rand_sound = rand::random::<usize>() % item.files.len();
|
||||||
&item.files[rand_step]
|
&item.files[rand_sound]
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user