From d5bcef4f8a936b395ad61dd63d3064834c190cf0 Mon Sep 17 00:00:00 2001 From: Ccomp5950 Date: Sun, 12 Jan 2014 22:37:00 -0600 Subject: [PATCH] Uplink fix item spawner fix. Probably a merge conflict fix or something but some code got moved to an odd spot. --- code/game/objects/items/devices/uplinks.dm | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/code/game/objects/items/devices/uplinks.dm b/code/game/objects/items/devices/uplinks.dm index b02fc79891e..41ae746739c 100644 --- a/code/game/objects/items/devices/uplinks.dm +++ b/code/game/objects/items/devices/uplinks.dm @@ -27,6 +27,12 @@ A list of items and costs is stored under the datum of every game mode, alongsid ItemList = text2list(src.items, ";") // Parsing the items text string uses = ticker.mode.uplink_uses nanoui_items = generate_nanoui_items() + for(var/D in ItemList) + var/list/O = text2list(D, ":") + if(O.len>0) + valid_items += O[1] + + /* Built the Items List for use with NanoUI @@ -56,16 +62,6 @@ A list of items and costs is stored under the datum of every game mode, alongsid return items_nano - - - - - //Halfassed fix for href exploit ~Z - for(var/D in ItemList) - var/list/O = text2list(D, ":") - if(O.len>0) - valid_items += O[1] - //Let's build a menu! /obj/item/device/uplink/proc/generate_menu()