From d74b46c7f714e14c92c310d27c5291fcf033dd50 Mon Sep 17 00:00:00 2001 From: Sishen Date: Sat, 17 Aug 2019 11:10:09 -0400 Subject: [PATCH] some updates thanks to thechosenevilone --- code/game/gamemodes/dynamic/dynamic_rulesets_midround.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/game/gamemodes/dynamic/dynamic_rulesets_midround.dm b/code/game/gamemodes/dynamic/dynamic_rulesets_midround.dm index 440765718b..064a325ca1 100644 --- a/code/game/gamemodes/dynamic/dynamic_rulesets_midround.dm +++ b/code/game/gamemodes/dynamic/dynamic_rulesets_midround.dm @@ -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()