Skip to content

Commit

Permalink
Fixes looping sounds having invalid sound weights (#2410)
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy authored Jun 25, 2024
1 parent 9a5ae68 commit efcab83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/datums/looping_sounds/_looping_sound.dm
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
if(!each_once)
. = play_from
while(!isfile(.) && !isnull(.))
. = pick_weight(.)
. = pick_weight(fill_with_ones(.))
return .


Expand All @@ -182,7 +182,7 @@
// Tree is a list of lists containign files
// If an entry in the tree goes to 0 length, we cut it from the list
tree += list(.)
. = pick_weight(.)
. = pick_weight(fill_with_ones(.))

if(!isfile(.))
return
Expand Down

0 comments on commit efcab83

Please sign in to comment.