some updates thanks to thechosenevilone

This commit is contained in:
Sishen
2019-08-17 11:10:09 -04:00
parent 921e12dd64
commit d74b46c7f7
@@ -29,10 +29,10 @@
// So for example you can get the list of all current dead players with var/list/dead_players = candidates[CURRENT_DEAD_PLAYERS]
// Make sure to properly typecheck the mobs in those lists, as the dead_players list could contain ghosts, or dead players still in their bodies.
// We're still gonna trim the obvious (mobs without clients, jobbanned players, etc)
living_players = trim_list(candidates[CURRENT_LIVING_PLAYERS])
living_antags = trim_list(candidates[CURRENT_LIVING_ANTAGS])
dead_players = trim_list(candidates[CURRENT_DEAD_PLAYERS])
list_observers = trim_list(candidates[CURRENT_OBSERVERS])
living_players = trim_list(mode.current_players[CURRENT_LIVING_PLAYERS])
living_antags = trim_list(mode.current_players[CURRENT_LIVING_ANTAGS])
dead_players = trim_list(mode.current_players[CURRENT_DEAD_PLAYERS])
list_observers = trim_list(mode.current_players[CURRENT_OBSERVERS])
/datum/dynamic_ruleset/midround/proc/trim_list(list/L = list())
var/list/trimmed_list = L.Copy()