From 8eb4b486c7bba4f2a7bd8a29e482d8d13e408120 Mon Sep 17 00:00:00 2001 From: davipatury Date: Tue, 21 Feb 2017 10:22:33 -0300 Subject: [PATCH] Double fixed. --- code/game/machinery/computer/skills.dm | 47 +++++++++++++------------- 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/code/game/machinery/computer/skills.dm b/code/game/machinery/computer/skills.dm index da754bf9937..e98028e3807 100644 --- a/code/game/machinery/computer/skills.dm +++ b/code/game/machinery/computer/skills.dm @@ -96,32 +96,31 @@ temp = null if(href_list["temp_action"]) - if(href_list["temp_action"]) - var/prm = splittext(href_list["temp_action"], "=") - switch(prm[1]) - if("del_all2") + var/temp_list = splittext(href_list["temp_action"], "=") + switch(temp_list[1]) + if("del_all2") + if(PDA_Manifest && PDA_Manifest.len) + PDA_Manifest.Cut() + for(var/datum/data/record/R in data_core.security) + qdel(R) + setTemp("

All employment records deleted.

") + if("del_rg2") + if(active1) if(PDA_Manifest && PDA_Manifest.len) PDA_Manifest.Cut() - for(var/datum/data/record/R in data_core.security) - qdel(R) - setTemp("

All employment records deleted.

") - if("del_rg2") - if(active1) - if(PDA_Manifest && PDA_Manifest.len) - PDA_Manifest.Cut() - for(var/datum/data/record/R in data_core.medical) - if(R.fields["name"] == active1.fields["name"] && R.fields["id"] == active1.fields["id"]) - qdel(R) - qdel(active1) - active1 = null - screen = SKILL_DATA_R_LIST - if("rank") - if(active1) - if(PDA_Manifest && PDA_Manifest.len) - PDA_Manifest.Cut() - active1.fields["rank"] = prm[2] - if(prm[2] in joblist) - active1.fields["real_rank"] = prm[2] + for(var/datum/data/record/R in data_core.medical) + if(R.fields["name"] == active1.fields["name"] && R.fields["id"] == active1.fields["id"]) + qdel(R) + qdel(active1) + active1 = null + screen = SKILL_DATA_R_LIST + if("rank") + if(active1) + if(PDA_Manifest && PDA_Manifest.len) + PDA_Manifest.Cut() + active1.fields["rank"] = temp_list[2] + if(temp_list[2] in joblist) + active1.fields["real_rank"] = temp_list[2] if(href_list["scan"]) if(scan)