Merge pull request #3166 from Citadel-Station-13/upstream-merge-31315

[MIRROR] Removes shitty sleep from area/Entered
This commit is contained in:
LetterJay
2017-10-06 02:13:22 -04:00
committed by GitHub
+5 -4
View File
@@ -449,10 +449,11 @@ GLOBAL_LIST_EMPTY(teleportlocs)
if(!L.client.played)
SEND_SOUND(L, sound(sound, repeat = 0, wait = 0, volume = 25, channel = CHANNEL_AMBIENCE))
L.client.played = 1
sleep(600) //ewww - this is very very bad
if(L.&& L.client)
L.client.played = 0
L.client.played = TRUE
addtimer(CALLBACK(L.client, /client/proc/ResetAmbiencePlayed), 600)
/client/proc/ResetAmbiencePlayed()
played = FALSE
/atom/proc/has_gravity(turf/T)
if(!T || !isturf(T))