File tree Expand file tree Collapse file tree
code/controllers/subsystem Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments