From 350ddab41bce2a962a8757b3ae6818475a53fd54 Mon Sep 17 00:00:00 2001 From: JaySparrow Date: Thu, 19 Nov 2020 15:39:02 -0600 Subject: [PATCH] Quick fix for the antag panel aaaaaaaa bugs --- code/datums/mind.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/datums/mind.dm b/code/datums/mind.dm index 7c86cfe6..f8550697 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -586,14 +586,12 @@ new_objective.owner = src new_objective.target = null new_objective.explanation_text = "Free lewd objective" - objectives += new_objective else new_objective = new objective_path new_objective.owner = src new_objective.target = new_target.mind //Will display as special role if the target is set as MODE. Ninjas/commandos/nuke ops. new_objective.update_explanation_text() - objectives += new_objective if ("custom") var/expl = stripped_input(usr, "Custom objective:", "Objective", objective ? objective.explanation_text : "") @@ -610,6 +608,7 @@ if(target_antag) target_antag.objectives -= objective objectives -= objective + objectives += new_objective target_antag.objectives.Insert(objective_pos, new_objective) message_admins("[key_name_admin(usr)] edited [current]'s objective to [new_objective.explanation_text]") log_admin("[key_name(usr)] edited [current]'s objective to [new_objective.explanation_text]")