diff --git a/code/controllers/subsystem/blackbox.dm b/code/controllers/subsystem/blackbox.dm index 273fd71dbc1..f83aabc5c80 100644 --- a/code/controllers/subsystem/blackbox.dm +++ b/code/controllers/subsystem/blackbox.dm @@ -176,9 +176,10 @@ SUBSYSTEM_DEF(blackbox) * * increment - If using "amount", how much to increment why * * data - The actual data to logged * * overwrite - Do we want to overwrite the existing key + * * ignore_seal - Does the feedback go in regardless of blackbox sealed status? (EG: map vote results) */ -/datum/controller/subsystem/blackbox/proc/record_feedback(key_type, key, increment, data, overwrite) - if(sealed || !key_type || !istext(key) || !isnum(increment || !data)) +/datum/controller/subsystem/blackbox/proc/record_feedback(key_type, key, increment, data, overwrite, ignore_seal) + if((sealed && !ignore_seal) || !key_type || !istext(key) || !isnum(increment || !data)) return var/datum/feedback_variable/FV = find_feedback_datum(key, key_type) switch(key_type) diff --git a/code/controllers/subsystem/vote.dm b/code/controllers/subsystem/vote.dm index a93d7e443c8..e43f8899e4c 100644 --- a/code/controllers/subsystem/vote.dm +++ b/code/controllers/subsystem/vote.dm @@ -160,6 +160,8 @@ SUBSYSTEM_DEF(vote) . = announce_result() var/restart = 0 if(.) + for(var/option in choices) + SSblackbox.record_feedback("nested tally", "votes", choices[option], list(mode, option), ignore_seal = TRUE) switch(mode) if("restart") if(. == "Restart Round") @@ -188,7 +190,6 @@ SUBSYSTEM_DEF(vote) to_chat(world, "Map for next round: [initial(top_voted_map.fluff_name)] ([initial(top_voted_map.technical_name)])") SSmapping.next_map = new top_voted_map - if(restart) SSticker.reboot_helper("Restart vote successful.", "restart vote")