Fix play_ambience in Life() causing premature loops

This commit is contained in:
ShadowLarkens
2020-08-10 03:00:57 -07:00
committed by Rykka
parent 7221a3d467
commit 305b18c15e
3 changed files with 7 additions and 5 deletions

View File

@@ -325,7 +325,7 @@
for(var/mob/living/M in mobs_in_area(linkedholodeck))
if(M.mind)
linkedholodeck.play_ambience(M)
linkedholodeck.play_ambience(M, initial = TRUE)
linkedholodeck.sound_env = A.sound_env

View File

@@ -95,7 +95,7 @@
if(world.time >= (lastareachange + 30 SECONDS)) // Every 30 seconds, we're going to run a 35% chance to play ambience.
var/area/A = get_area(src)
if(A)
A.play_ambience(src)
A.play_ambience(src, initial = FALSE)
/mob/living/proc/update_pulling()
if(pulling)