From a8a862411d5f1af2985faf124170c9899795ecf9 Mon Sep 17 00:00:00 2001 From: LetterJay Date: Thu, 18 May 2017 02:31:07 -0500 Subject: [PATCH] commit --- code/__HELPERS/game.dm | 15 +++++++------- code/__HELPERS/game.dm.rej | 42 -------------------------------------- 2 files changed, 7 insertions(+), 50 deletions(-) delete mode 100644 code/__HELPERS/game.dm.rej diff --git a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm index e93de5dccc..9384e3fcfe 100644 --- a/code/__HELPERS/game.dm +++ b/code/__HELPERS/game.dm @@ -449,15 +449,14 @@ for(var/mob/dead/observer/G in GLOB.player_list) candidates += G - pollCandidates(Question, jobbanType, gametypeCheck, be_special_flag, poll_time, ignore_category, flashwindow, candidates) - - return candidates +return pollCandidates(Question, jobbanType, gametypeCheck, be_special_flag, poll_time, ignore_category, flashwindow, candidates) /proc/pollCandidates(Question, jobbanType, datum/game_mode/gametypeCheck, be_special_flag = 0, poll_time = 300, ignore_category = null, flashwindow = TRUE, list/group = null) var/time_passed = world.time if (!Question) Question = "Would you like to be a special role?" + var/list/result = list() for(var/m in group) var/mob/M = m if(!M.key || !M.client || (ignore_category && GLOB.poll_ignore[ignore_category] && M.ckey in GLOB.poll_ignore[ignore_category])) @@ -472,17 +471,17 @@ if(jobban_isbanned(M, jobbanType) || jobban_isbanned(M, "Syndicate")) continue - showCandidatePollWindow(M, poll_time, Question, group, ignore_category, time_passed, flashwindow) + showCandidatePollWindow(M, poll_time, Question, result, ignore_category, time_passed, flashwindow) sleep(poll_time) //Check all our candidates, to make sure they didn't log off or get deleted during the wait period. - for(var/mob/M in group) + for(var/mob/M in result) if(!M.key || !M.client) - group -= M + result -= M - listclearnulls(group) + listclearnulls(result) - return group + return result /proc/pollCandidatesForMob(Question, jobbanType, datum/game_mode/gametypeCheck, be_special_flag = 0, poll_time = 300, mob/M, ignore_category = null) var/list/L = pollGhostCandidates(Question, jobbanType, gametypeCheck, be_special_flag, poll_time, ignore_category) diff --git a/code/__HELPERS/game.dm.rej b/code/__HELPERS/game.dm.rej deleted file mode 100644 index 81d778a232..0000000000 --- a/code/__HELPERS/game.dm.rej +++ /dev/null @@ -1,42 +0,0 @@ -diff a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm (rejected hunks) -@@ -449,15 +449,13 @@ - for(var/mob/dead/observer/G in GLOB.player_list) - candidates += G - -- pollCandidates(Question, jobbanType, gametypeCheck, be_special_flag, poll_time, ignore_category, flashwindow, candidates) -- -- return candidates -+ return pollCandidates(Question, jobbanType, gametypeCheck, be_special_flag, poll_time, ignore_category, flashwindow, candidates) - - /proc/pollCandidates(Question, jobbanType, datum/game_mode/gametypeCheck, be_special_flag = 0, poll_time = 300, ignore_category = null, flashwindow = TRUE, list/group = null) - var/time_passed = world.time - if (!Question) - Question = "Would you like to be a special role?" -- -+ var/list/result = list() - for(var/m in group) - var/mob/M = m - if(!M.key || !M.client || (ignore_category && GLOB.poll_ignore[ignore_category] && M.ckey in GLOB.poll_ignore[ignore_category])) -@@ -472,17 +470,17 @@ - if(jobban_isbanned(M, jobbanType) || jobban_isbanned(M, "Syndicate")) - continue - -- showCandidatePollWindow(M, poll_time, Question, group, ignore_category, time_passed, flashwindow) -+ showCandidatePollWindow(M, poll_time, Question, result, ignore_category, time_passed, flashwindow) - sleep(poll_time) - - //Check all our candidates, to make sure they didn't log off or get deleted during the wait period. -- for(var/mob/M in group) -+ for(var/mob/M in result) - if(!M.key || !M.client) -- group -= M -+ result -= M - -- listclearnulls(group) -+ listclearnulls(result) - -- return group -+ return result - - /proc/pollCandidatesForMob(Question, jobbanType, datum/game_mode/gametypeCheck, be_special_flag = 0, poll_time = 300, mob/M, ignore_category = null) - var/list/L = pollGhostCandidates(Question, jobbanType, gametypeCheck, be_special_flag, poll_time, ignore_category)