Skip to content

Commit 605ca03

Browse files
committed
E
1 parent 2b7697b commit 605ca03

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

code/controllers/subsystem/ambience.dm

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ SUBSYSTEM_DEF(ambience)
2020
var/client/client_iterator = cached_clients[cached_clients.len]
2121
cached_clients.len--
2222

23-
//Check to see if the client exists and isn't held by a new player
24-
var/mob/client_mob = client_iterator?.mob
25-
if(isnull(client_iterator) || !client_mob || isnewplayer(client_mob))
23+
//Check to see if the client exists
24+
if(isnull(client_iterator))
2625
ambience_listening_clients -= client_iterator
2726
client_old_areas -= client_iterator
2827
continue
2928

29+
// skip them this tick if they're on the lobby screen or somehow dont have a mob??
30+
var/mob/client_mob = client_iterator?.mob
31+
if(!client_mob || isnewplayer(client_mob))
32+
continue
33+
3034
//Check to see if the client-mob is in a valid area
3135
var/area/current_area = get_area(client_mob)
3236
if(!current_area) //Something's gone horribly wrong

0 commit comments

Comments
 (0)